Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: PropertyGrid and RefreshProperties attribute

$
0
0
No - it is not like the one you mentioned. The one that I am talking about is related to a case like the one mentioned below

Class Car
{
[Browsable(true)]
[RefreshProperties(RefreshAll)]
bool Trigger {get; set; }

[DynamicBrowsable("Trigger")]
string Prop1 {get; set; }

[DynamicBrowsable("Trigger")]
string Prop2 {get; set; }
}

Basically, DynamicBrowsable attribute is something that I created which depends on the Trigger property's value. If Trigger value is true - Prop1 and Prop2 will be displayed.

Bottomline is, if a property is marked with RefreshProperties attribute - we need to re-evaluate the properties that gets displayed in the property grid. This happens in the Microsoft released property grid for win forms, but this does not work for the WPF version here.

Viewing all articles
Browse latest Browse all 2157

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>