Inheritance: System.Windows.RoutedEventArgs
Esempio n. 1
0
 private void OnClearPropertyItemInternal(object sender, PropertyItemEventArgs args)
 {
     if (_containerHelper != null)
     {
         _containerHelper.ClearChildrenPropertyItem(args.PropertyItem, args.Item);
     }
     args.Handled = true;
 }
        private void OnClearPropertyItemInternal(object sender, PropertyItemEventArgs args)
        {
            _containerHelper.ClearChildrenPropertyItem(args.PropertyItem, args.Item);
            // This is the callback of the PreparePropertyItem comming from the template PropertyItemControl.
            args.PropertyItem.Level = 0;

            args.Handled = true;
        }
Esempio n. 3
0
 private void PropertyGridMakeExpandable(object sender, Xceed.Wpf.Toolkit.PropertyGrid.PropertyItemEventArgs e)
 {
     if (e.Item is PropertyItem item)
     {
         if ((item.PropertyType.IsValueType && !item.PropertyType.IsEnum && !item.PropertyType.IsPrimitive) || item.PropertyType.IsClass)
         {
             item.IsExpandable = true;
         }
     }
 }
    private void OnPreparePropertyItem( object sender, PropertyItemEventArgs e )
    {
      var propertyItem = e.PropertyItem as PropertyItem;
      // Parent of top-level properties is the PropertyGrid itself.
      bool isTopLevelProperty = 
        ( propertyItem.ParentElement is Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid );

      if( isTopLevelProperty && propertyItem.PropertyDescriptor.Name == "Friend" )
      {
        propertyItem.DisplayName = "Friend (renamed)";
      }
    }
Esempio n. 5
0
        private void propertyGrid_PreparePropertyItem(object sender, Xceed.Wpf.Toolkit.PropertyGrid.PropertyItemEventArgs e)
        {
            PropertyDescriptor theDescriptor = ((PropertyItem)e.PropertyItem).PropertyDescriptor;

            if (theDescriptor.IsBrowsable)
            {
                e.PropertyItem.Visibility = Visibility.Visible;
            }
            else
            {
                e.PropertyItem.Visibility = Visibility.Collapsed;
            }
        }
 private void OnPreparePropertyItemInternal(object sender, PropertyItemEventArgs args)
 {
     _containerHelper.PrepareChildrenPropertyItem(args.PropertyItem, args.Item);
     args.Handled = true;
 }
Esempio n. 7
0
 private void OnClearPropertyItemInternal( object sender, PropertyItemEventArgs args )
 {
   _containerHelper.ClearChildrenPropertyItem( args.PropertyItem, args.Item );
   args.Handled = true;
 }