Hello,
I'm currently applying the office2013 theme to a project and I'm having some strange/unexpected issues. I have copied the Telerik.Windows.Themes.Office2013.dll file to a project folder.
Here is the relevant code of the App.xaml file:
<
ResourceDictionary
>
<
ResourceDictionary.MergedDictionaries
>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"
/>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml"
/>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Input.xaml"
/>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml"
/>
<
ResourceDictionary
Source
=
"/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.GridView.xaml"
/>
<
ResourceDictionary
>
<
Style
TargetType
=
"telerik:RadComboBox"
BasedOn
=
"{StaticResource RadComboBoxStyle}"
>
<
Setter
Property
=
"MinHeight"
Value
=
"0"
/>
</
Style
>
<
Style
TargetType
=
"TextBox"
BasedOn
=
"{StaticResource TextBoxStyle}"
>
<
Setter
Property
=
"MinHeight"
Value
=
"0"
/>
<
Setter
Property
=
"Padding"
Value
=
"2"
/>
</
Style
>
<
Style
TargetType
=
"telerik:GridViewHeaderCell"
BasedOn
=
"{StaticResource GridViewHeaderCellStyle}"
>
<
Setter
Property
=
"Margin"
Value
=
"0"
/>
<
Setter
Property
=
"Padding"
Value
=
"6,0,0,0"
/>
<
Setter
Property
=
"FontSize"
Value
=
"13"
/>
</
Style
>
<
Style
TargetType
=
"telerik:RadButton"
BasedOn
=
"{StaticResource RadButtonStyle}"
>
<
Setter
Property
=
"MinHeight"
Value
=
"0"
/>
</
Style
>
<
Style
TargetType
=
"telerik:RadNumericUpDown"
BasedOn
=
"{StaticResource RadNumericUpDownStyle}"
>
<
Setter
Property
=
"MinHeight"
Value
=
"0"
/>
</
Style
>
<
Style
TargetType
=
"Label"
>
<
Setter
Property
=
"MinHeight"
Value
=
"0"
/>
</
Style
>
</
ResourceDictionary
>
</
ResourceDictionary.MergedDictionaries
>
</
ResourceDictionary
>
- I wanted to reduce the font sizes because they are too large for my taste. It was no problem to set new sizes for the fonts, but the controls have a MinHeight value that prevents that the control adapts to the new size so that there is no space gain. Therefore I have defined in the ResourceDictionary that all relevant controls should have a MinHeight of 0. Why do the controls have such a large default MinHeight?
- As soon as I add "component/Themes/Telerik.Windows.Controls.Docking.xaml" I will get an exception. I don't know if I need it, but most examples I have seen are also using that line. They are also using the RibbonView.xaml line, which also causes an exception on my program.
- The style definition for Label throws an exception if I use: BasedOn="{StaticResource LabelStyle}". Is this normal? Didn't expect it because I don't have any issues with the TextBox style definition.
- The most strange issue I'm having comes from the filter popup window of the RadGridView (see attached image). As you can see the window sometimes does not close automatically. And one of the popup windows uses the wrong ComboBox. It's always on the same column but it is ok as soon as I remove the RadComboBox style definition from above.
- How can I change the Filter-Symbol color from the column header when filtering is active. I would like to have a color that is more visible (yellor or red)?
Greetings
Raul