Quantcast
Viewing latest article 3
Browse Latest Browse All 10

Listing an Element’s Attached Properties

I was recently confronted with a scenario in witch a xaml element needed to be dynamically replaced and nested in a container control. There’s nothing unusual about this except for the fact that when this happens the element being replaced might have attached dependency properties set on it. Needless to say that in this scenario such operation might have significant impact. Imagine if your element is inside a Canvas panel and has some of its attached properties set, like Canvas.Top or Canvas.Left. My first approach was to go through reflection on the parent and get all DependencyProperties, then invoke GetValue() […]

Viewing latest article 3
Browse Latest Browse All 10

Trending Articles