wpftoolkit icon indicating copy to clipboard operation
wpftoolkit copied to clipboard

DependsOn

Open GenuineRex opened this issue 8 years ago • 1 comments

How do you trigger a ItemsSourceAttribute property to refresh in a PropertyGrid when it depends on another value.

e.g. I have a printer setting and a tray setting. I want to dynamically generate printers (easily done) and then based on the selected printer dynamically generate a list of trays (not happening).

GenuineRex avatar Apr 19 '18 15:04 GenuineRex

Hi,

If you use the Plus version (available here : https://xceed.com/xceed-toolkit-plus-for-wpf/), you can use the "DependsOn" attribute.

Currently, -Users of the Plus version have v3.6 -Users of the Free version from GitHub have v3.3

Users of the Plus version always have the latest version and more features.

There is also the "RefreshProperties" attribute which will refresh all the PropertyGrid propertyItem when activated.

XceedBoucherS avatar May 03 '18 18:05 XceedBoucherS