I'd like to programmaticly read a value from a theme. I've created the following item:
<Telerik.WinControls.Styles.XmlRepositoryItem ItemType="Gradient" DisplayName="MyNormalControlColor" Key="MyNormalControlColor" Capacity="4">
<XmlPropertySetting Property="Telerik.WinControls.VisualElement.BackColor" Value="0, 0, 0" />
<XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.GradientStyle" Value="Solid" />
<XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.NumberOfColors" Value="1" />
</Telerik.WinControls.Styles.XmlRepositoryItem>
If I'm in my code (C#), any idea how to read that value out of the theme to use it when drawing?
Thanks.
<Telerik.WinControls.Styles.XmlRepositoryItem ItemType="Gradient" DisplayName="MyNormalControlColor" Key="MyNormalControlColor" Capacity="4">
<XmlPropertySetting Property="Telerik.WinControls.VisualElement.BackColor" Value="0, 0, 0" />
<XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.GradientStyle" Value="Solid" />
<XmlPropertySetting Property="Telerik.WinControls.Primitives.FillPrimitive.NumberOfColors" Value="1" />
</Telerik.WinControls.Styles.XmlRepositoryItem>
If I'm in my code (C#), any idea how to read that value out of the theme to use it when drawing?
Thanks.