The PhoneAccentColor key indicates the accent color as a Color object.
The PhoneAccentBrush key indicates the accent color as a Brush object.
In XAML you can do something like:
<TextBlock Foreground="{StaticResource PhoneAccentBrush}" /> <Border> <Border.Background> <SolidColorBrush Color="{StaticResource PhoneAccentColor}" /> </Border.Background> </Border>In C#:
Color AccentColor = (Color)Resources["PhoneAccentColor"]; Brush AccentBrush = (Brush)Resources["PhoneAccentBrush"];
No comments:
Post a Comment