Inheritance: INotifyPropertyChanged
        private static void HandleRootTargetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PropertyInspector inspector = (PropertyInspector)d;

            inspector.inspectStack.Clear();
            inspector.Target = e.NewValue;

            inspector._delvePathList.Clear();
            inspector.OnPropertyChanged("DelvePath");
        }
        private static void HandleTargetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PropertyInspector inspector = (PropertyInspector)d;

            inspector.OnPropertyChanged("Type");

            if (e.NewValue != null)
            {
                inspector.inspectStack.Add(e.NewValue);
            }
        }
Beispiel #3
0
        private static void HandleTargetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PropertyInspector inspector = (PropertyInspector)d;

            inspector.OnPropertyChanged("Type");

            if (e.NewValue != null)
            {
                inspector.inspectStack.Add(e.NewValue);
            }

            if (inspector.lastRootTarget == inspector.RootTarget && e.OldValue != null && e.NewValue != null && inspector.checkBoxClearAfterDelve.IsChecked.HasValue && inspector.checkBoxClearAfterDelve.IsChecked.Value)
            {
                inspector.targetToFilter[e.OldValue.GetType()] = inspector.PropertiesFilter.Text;
                string text = string.Empty;
                inspector.targetToFilter.TryGetValue(e.NewValue.GetType(), out text);
                inspector.PropertiesFilter.Text = text ?? string.Empty;
            }
            inspector.lastRootTarget = inspector.RootTarget;
        }