From 2d7ae5a47398eb162fa42876341887cbb6da2ecd Mon Sep 17 00:00:00 2001 From: brianlagunas_cp Date: Fri, 30 Sep 2011 18:41:02 +0000 Subject: [PATCH] PropertyGrid: enabled the ability to define an EditorDefinition by property name as well. You can now have an EditorDefinition for a specific Type as well as for specific property names as well. This example will provide a TextBox editor for any property of type DateTime as well as any property with the defined property names: FirstName LastName You can also target just a Type or just property names. --- .../ColorPicker/Implementation/ColorPicker.cs | 1 - .../ColorPicker/Themes/Generic.xaml | 57 ++++++++----------- .../Implementation/EditorDefinition.cs | 4 +- .../Implementation/IEditorDefinition.cs | 2 +- 4 files changed, 27 insertions(+), 37 deletions(-) diff --git a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ColorPicker/Implementation/ColorPicker.cs b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ColorPicker/Implementation/ColorPicker.cs index ba0f4c49..f61a8ade 100644 --- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ColorPicker/Implementation/ColorPicker.cs +++ b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ColorPicker/Implementation/ColorPicker.cs @@ -2,7 +2,6 @@ using System.Windows; using System.Windows.Controls; using System.Windows.Media; -using System.Windows.Controls.Primitives; using System.Collections.ObjectModel; using System.Windows.Input; using Microsoft.Windows.Controls.Core.Utilities; diff --git a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ColorPicker/Themes/Generic.xaml b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ColorPicker/Themes/Generic.xaml index 0f4aa5bf..a45f8795 100644 --- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ColorPicker/Themes/Generic.xaml +++ b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/ColorPicker/Themes/Generic.xaml @@ -54,7 +54,7 @@ - + +