Nothing is everything.

Saturday, January 2, 2010

Accessing Resources in Other Assemblies

<SolidColorBrush
x:Key="{ComponentResourceKey TypeInTargetAssembly={x:Type local:MyClass},
ResourceId=MyClassBrush}">Yellow</SolidColorBrush>


<Button Background="{DynamicResource {x:Static otherAssembly:MyClass.MyClassBrushKey}}"/>


WPF unleashed, page 256

No comments:

Post a Comment

Followers