Xceed.Wpf.Toolkit.PropertyGrid.PropertyItem.OnIsExpandedChanged C# (CSharp) Метод

OnIsExpandedChanged() защищенный Метод

protected OnIsExpandedChanged ( bool oldValue, bool newValue ) : void
oldValue bool
newValue bool
Результат void
    protected override void OnIsExpandedChanged( bool oldValue, bool newValue )
    {
      if( newValue )
      {
        // This withholds the generation of all PropertyItem instances (recursively)
        // until the PropertyItem is expanded.
        var objectContainerHelper = ContainerHelper as ObjectContainerHelperBase;
        if( objectContainerHelper != null )
        {
          objectContainerHelper.GenerateProperties();
        }
      }
    }

Usage Example

Пример #1
0
        private static void OnIsExpandedChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            PropertyItem propertyItem = o as PropertyItem;

            if (propertyItem != null)
            {
                propertyItem.OnIsExpandedChanged(( bool )e.OldValue, ( bool )e.NewValue);
            }
        }