Telerik color set and use

Resource

<telerik:Windows8Colors x:Key="Windows8Colors" />
<SolidColorBrush x:Key="AccentBrush" Color="{Binding Source={StaticResource Windows8Colors}, Path=Palette.AccentColor}" />

Code

void x()
{
    Windows8Colors.PaletteInstance.AccentColor = Color.FromArgb(0xFF, 0x79, 0x25, 0x6B);
}

Datatemplate

    <TextBlock FontSize="14" Foreground="{StaticResource AccentBrush}" />

Leave a Reply

Your email address will not be published. Required fields are marked *