tags:

views:

142

answers:

1

HI

Am load a string xaml with DynamicResource assigned to a Background property. Is there a way to get the reference of the dynamic resource.

Background="{DynamicResource Color1}"

I want to get the resource reference assigned to a Dependency property at runtime Pl help

+1  A: 

Use FrameworkElement.FindResource Method

this.FindResource("Color1");
ArsenMkrt
Sorry I have to rephrase the question.... I want to get the resource reference assigned to a Dependency property
Chandimal
you will get reference to the object that dependency property referenced, why you need exactly that reference?
ArsenMkrt