void DataBorder_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { RecalculateVisibility(e.OldValue, e.NewValue); }