I've been using the UI for WPF with the regular binaries and the StyleManager for a while. Today I took a shot at switching to the NoXaml binaries. Unfortunately my change has broken all of the custom styles I myself made for Telerik controls. Specifically, the XAML parser blows up when it see me attempting to base my style on the default one like this:
The "BasedOn" clause causes the problem. I get the dreaded "Provide Value on StaticResourceHolder" error. It would appear it cannot locate that default style for RadRadioButton on which I am trying to base my style.
Can you help me figure out further I need to do to make these styles work again?
I tried to follow the instructions here:
https://docs.telerik.com/devtools/WPF/styling-and-appearance/styling-apperance-setting-a-theme-overview
I removed all assembly references from the regular binaries and replaced them with references to the NoXaml equivalents.
Instead of copying the XAML files, I tried the approach that says to reference a theme from the /Binaries/NoXaml folder.
And since I am using the Windows8Touch, I m
https://docs.telerik.com/devtools/WPF/styling-and-appearance/themes-suite/common-styles-appearance-colorizing-metro-theme
And so I did this at the start of my application resources in App.xaml
Am I missing something?
<
Style
TargetType
=
"{x:Type tk:RadRadioButton}"
BasedOn
=
"{StaticResource {x:Type tk:RadRadioButton}}"
>
<
Setter
Property
=
"CornerRadius"
Value
=
"3"
/>
</
Style
>
The "BasedOn" clause causes the problem. I get the dreaded "Provide Value on StaticResourceHolder" error. It would appear it cannot locate that default style for RadRadioButton on which I am trying to base my style.
Can you help me figure out further I need to do to make these styles work again?
I tried to follow the instructions here:
https://docs.telerik.com/devtools/WPF/styling-and-appearance/styling-apperance-setting-a-theme-overview
I removed all assembly references from the regular binaries and replaced them with references to the NoXaml equivalents.
Instead of copying the XAML files, I tried the approach that says to reference a theme from the /Binaries/NoXaml folder.
And since I am using the Windows8Touch, I m
https://docs.telerik.com/devtools/WPF/styling-and-appearance/themes-suite/common-styles-appearance-colorizing-metro-theme
And so I did this at the start of my application resources in App.xaml
<
Application.Resources
>
<
ResourceDictionary
>
<
ResourceDictionary.MergedDictionaries
>
<
tk:Windows8ResourceDictionary
/>
<
tk:Windows8TouchResourceDictionary
/>
Am I missing something?