Пример #1
0
        private static void OnDependencyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            UniformBoard panel = d as UniformBoard;

            if (panel != null)
            {
                RefreshPanel(panel);
            }
        }
Пример #2
0
        private static void OnAttachedPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            UniformBoard panel = VisualTreeHelperUtil.GetParent(d, (parent) => parent is UniformBoard) as UniformBoard;

            if (panel != null)
            {
                RefreshPanel(panel);
            }
        }