Browse by Tags

Sorry, but there are no more tags available to filter with.
Modify Resources at Runtime in WPF
9 Mar 2010 9:32 AM
In general, it's no problem to modify WPF resources at runtime. You can use the TryFindResource method to search the same path as the XAML parser, given a starting point, and a name for the resource. like this: Button btn = (Button)sender; var brush = (SolidColorBrush)(btn.TryFindResource("TextBrush")); if (brush != null) { brush.Color = Colors... Read More...
by KenG | with no comments
Filed under: