Style to set isExpanded

Grids for WPF Forum

Posted 2 years ago by Neil Larson
Version: 17.1.0650
Avatar
   <Style TargetType="{x:Type grids:PropertyGridDataAccessorItem}">
      <Setter Property="IsExpanded" Value="True"/>
   </Style>

 I had this style working pre 2017.1, and have not had success figuring out the targettype I should replace it with. 

 

Also, I had this command binding

 

CommandManager.RegisterClassCommandBinding(typeof(MainWindow), new CommandBinding(PropertyGrid.ShowPropertyDialogCommand, OnShowPropertyDialogExecute, OnShowPropertyDialogCanExecute));

 and am wondering about the equivalent to the PropertyGrid.ShowPropertyDialogCommand. I just want to have the list expanded when the object is first shown in the property grid.

Thanks for any help -

Neil

Comments (2)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Neil,

Expansion is a lot easier now.  If you want all properties expanded by default, set PropertyGrid.ArePropertiesAutoExpanded to true instead.  Also you can selectively expand properties as seen in the Selection Expansion QuickStart if you wish.

The way to show property dialogs changed in 2017.1 a bit.  Check out the Property Dialog QuickStart for examples, and there is info on property dialogs at the end of the Property Editors documentation topic.


Actipro Software Support

Posted 2 years ago by Neil Larson
Avatar

Thanks!

The latest build of this product (v2019.1 build 0681) was released 18 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.