Used when properties are provided using a list source of items (eg. Properties or PropertiesSource). An instance of this class can be used as an item to easily customize the display of the property directly by modifying the values of this class (e.g., DisplayName, value, Category, etc.).
Inheritance: PropertyItemBase
Esempio n. 1
0
 private static void OnValueChanged( DependencyObject o, DependencyPropertyChangedEventArgs e )
 {
   CustomPropertyItem propertyItem = o as CustomPropertyItem;
   if( propertyItem != null )
   {
     propertyItem.OnValueChanged( ( object )e.OldValue, ( object )e.NewValue );
   }
 }
Esempio n. 2
0
    private static object OnCoerceValueChanged( DependencyObject o, object baseValue )
    {
      CustomPropertyItem prop = o as CustomPropertyItem;
      if( prop != null )
        return prop.OnCoerceValueChanged( baseValue );

      return baseValue;
    }