Easiest way to do ... on properties?

Grids for WPF Forum

Posted 15 years ago by Kelly Leahy - Software Architect, Milliman
Avatar
I'd like to do a (...) button on a property, and I'm wondering what's the easiest way to do this? I just want to be able to either bind a command to the button or react somehow when it is clicked to show a custom UI for editing the property (in a separate window). This is for properties that require A LOT of editing space (not something that would make sense in a popup or a category editor).

Kelly Leahy Software Architect Milliman, USA

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Kelly,

You'd need to define a property editor for the specified property by name or type. Or alternatively, you could have a general property editor that leverages a DataTemplateSelector as the ValueTemplateSelector.

You can either build your own DataTemplate, or use our BuiltinEditors.DialogTextBoxValueTemplateKey which uses a TextBox and a button with "...". The latter of which raises the generic PropertyGrid.ShowPropertyDialogCommand command.

The Property Editors QuickStart shows how to accomplish both.


Actipro Software Support

The latest build of this product (v24.1.3) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.