internal FrameworkElement GenerateEditingElementInternal( PropertyItemBase propertyItem )
 {
     return this.GenerateEditingElement( propertyItem );
 }
 protected virtual FrameworkElement GenerateEditingElement( PropertyItemBase propertyItem )
 {
     return null;
 }
Esempio n. 3
0
 internal FrameworkElement GenerateEditingElementInternal(PropertyItemBase propertyItem)
 {
     return(this.GenerateEditingElement(propertyItem));
 }
Esempio n. 4
0
 protected virtual FrameworkElement GenerateEditingElement(PropertyItemBase propertyItem)
 {
     return(null);
 }
 protected override sealed FrameworkElement GenerateEditingElement( PropertyItemBase propertyItem )
 {
   return ( this.EditingTemplate != null )
     ? this.EditingTemplate.LoadContent() as FrameworkElement
     : null;
 }
 private void RaiseClearPropertyItemEvent( PropertyItemBase propertyItem, object item )
 {
   this.RaiseEvent( new PropertyItemEventArgs( PropertyItemsControl.ClearPropertyItemEvent, this, propertyItem, item ) );
 }
 protected FrameworkElement CreateCustomEditor( EditorDefinitionBase customEditor, PropertyItemBase propertyItem )
 {
     return ( customEditor != null )
     ? customEditor.GenerateEditingElementInternal( propertyItem )
     : null;
 }
Esempio n. 8
0
 public PropertyItemEventArgs( RoutedEvent routedEvent, object source, PropertyItemBase propertyItem, object item )
   : base( routedEvent, source )
 {
   this.PropertyItem = propertyItem;
   this.Item = item;
 }
 public abstract object ItemFromContainer( PropertyItemBase container );
Esempio n. 10
0
        public virtual void PrepareChildrenPropertyItem( PropertyItemBase propertyItem, object item )
        {
            // Initialize the parent node
              propertyItem.ParentNode = PropertyContainer;

              PropertyGrid.RaisePreparePropertyItemEvent( ( UIElement )PropertyContainer, propertyItem, item );
        }
Esempio n. 11
0
 public abstract Binding CreateChildrenDefaultBinding( PropertyItemBase propertyItem );
Esempio n. 12
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public PropertyItemEventArgs(PropertyItemBase property)
 {
     Property = property;
 }
 protected FrameworkElement GenerateCustomEditingElement( Type definitionKey, PropertyItemBase propertyItem )
 {
   return ( PropertyContainer.EditorDefinitions != null )
     ? this.CreateCustomEditor( PropertyContainer.EditorDefinitions.GetRecursiveBaseTypes( definitionKey ), propertyItem )
     : null;
 }
Esempio n. 14
0
 protected override sealed FrameworkElement GenerateEditingElement(PropertyItemBase propertyItem)
 {
     return((this.EditingTemplate != null)
       ? this.EditingTemplate.LoadContent() as FrameworkElement
       : null);
 }
Esempio n. 15
0
        protected FrameworkElement GenerateCustomEditingElement( Type definitionKey, PropertyItemBase propertyItem )
        {
            FrameworkElement editor = null;

              if( PropertyContainer.EditorDefinitions != null )
              {
            // If no editor for the current type, fall back on base type editor recursively.
            while( editor == null && definitionKey != null )
            {
              editor = this.CreateCustomEditor( PropertyContainer.EditorDefinitions[ definitionKey ], propertyItem );
              definitionKey = definitionKey.BaseType;
            }
              }

              return editor;
        }
Esempio n. 16
0
 internal static void RaiseClearPropertyItemEvent( UIElement source, PropertyItemBase propertyItem, object item )
 {
   source.RaiseEvent( new PropertyItemEventArgs( PropertyGrid.ClearPropertyItemEvent, source, propertyItem, item ) );
 }
Esempio n. 17
0
 protected FrameworkElement GenerateCustomEditingElement( object definitionKey, PropertyItemBase propertyItem )
 {
     return ( PropertyContainer.EditorDefinitions != null )
     ? this.CreateCustomEditor( PropertyContainer.EditorDefinitions[ definitionKey ], propertyItem )
     : null;
 }
Esempio n. 18
0
    protected virtual void OnSelectedPropertyItemChanged( PropertyItemBase oldValue, PropertyItemBase newValue )
    {
      if( oldValue != null )
        oldValue.IsSelected = false;

      if( newValue != null )
        newValue.IsSelected = true;

      this.SelectedProperty = ( newValue != null ) ? _containerHelper.ItemFromContainer( newValue ) : null;

      RaiseEvent( new RoutedPropertyChangedEventArgs<PropertyItemBase>( oldValue, newValue, PropertyGrid.SelectedPropertyItemChangedEvent ) );
    }
Esempio n. 19
0
        public virtual void ClearChildrenPropertyItem( PropertyItemBase propertyItem, object item )
        {
            propertyItem.ParentNode = null;

              PropertyGrid.RaiseClearPropertyItemEvent( ( UIElement )PropertyContainer, propertyItem, item );
        }
Esempio n. 20
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public PropertyItemInvalidatedEventArgs(PropertyItemBase property, Result result)
     : base(property)
 {
     ValidationResult = result;
 }
Esempio n. 21
0
 public PropertyItemEventArgs(RoutedEvent routedEvent, object source, PropertyItemBase propertyItem, object item)
     : base(routedEvent, source)
 {
     PropertyItem = propertyItem;
     Item         = item;
 }