private static void OnDependencyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { UniformBoard panel = d as UniformBoard; if (panel != null) { RefreshPanel(panel); } }
private static void OnAttachedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { UniformBoard panel = VisualTreeHelperUtil.GetParent(d, (parent) => parent is UniformBoard) as UniformBoard; if (panel != null) { RefreshPanel(panel); } }