public PropertyInspector() { propertyFilter.SelectedFilterSet = AllFilterSets[0]; this.InitializeComponent(); this.inspector = this.PropertyGrid; this.inspector.Filter = this.propertyFilter; this.CommandBindings.Add(new CommandBinding(PropertyInspector.SnipXamlCommand, this.HandleSnipXaml, this.CanSnipXaml)); this.CommandBindings.Add(new CommandBinding(PropertyInspector.PopTargetCommand, this.HandlePopTarget, this.CanPopTarget)); this.CommandBindings.Add(new CommandBinding(PropertyInspector.DelveCommand, this.HandleDelve, this.CanDelve)); this.CommandBindings.Add(new CommandBinding(PropertyInspector.DelveBindingCommand, this.HandleDelveBinding, this.CanDelveBinding)); this.CommandBindings.Add(new CommandBinding(PropertyInspector.DelveBindingExpressionCommand, this.HandleDelveBindingExpression, this.CanDelveBindingExpression)); // watch for mouse "back" button this.MouseDown += new MouseButtonEventHandler(MouseDownHandler); this.KeyDown += new KeyEventHandler(PropertyInspector_KeyDown); }
public PropertyInspector() { propertyFilter.SelectedFilterSet = AllFilterSets[0]; this.InitializeComponent(); this.inspector = this.PropertyGrid; this.inspector.Filter = this.propertyFilter; this.CommandBindings.Add(new CommandBinding(PropertyInspector.SnipXamlCommand, this.HandleSnipXaml, this.CanSnipXaml)); this.CommandBindings.Add(new CommandBinding(PropertyInspector.PopTargetCommand, this.HandlePopTarget, this.CanPopTarget)); this.CommandBindings.Add(new CommandBinding(PropertyInspector.DelveCommand, this.HandleDelve, this.CanDelve)); this.CommandBindings.Add(new CommandBinding(PropertyInspector.DelveBindingCommand, this.HandleDelveBinding, this.CanDelveBinding)); this.CommandBindings.Add(new CommandBinding(PropertyInspector.DelveBindingExpressionCommand, this.HandleDelveBindingExpression, this.CanDelveBindingExpression)); // watch for mouse "back" button this.MouseDown += new MouseButtonEventHandler(MouseDownHandler); this.KeyDown += new KeyEventHandler(PropertyInspector_KeyDown); this.checkBoxClearAfterDelve.Checked += (s, e) => Properties.Settings.Default.ClearAfterDelve = this.checkBoxClearAfterDelve.IsChecked.HasValue && this.checkBoxClearAfterDelve.IsChecked.Value; this.checkBoxClearAfterDelve.Unchecked += (s, e) => Properties.Settings.Default.ClearAfterDelve = this.checkBoxClearAfterDelve.IsChecked.HasValue && this.checkBoxClearAfterDelve.IsChecked.Value; this.checkBoxClearAfterDelve.IsChecked = Properties.Settings.Default.ClearAfterDelve; }