3 Answers, 1 is accepted
0
Hello,
Didie
the Telerik team
I would recommend you to check this documentation article on how to style standard controls.
Greetings,Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
John
Top achievements
Rank 1
answered on 19 Jun 2012, 04:27 PM
Hi, Using this code error (Error 1 'Telerik.Windows.Controls.StyleManager' does not contain a definition for 'SetBasedOn' C:\Users\John\Documents\Visual Studio 2010\Projects\RadControlsWpfApp3\RadControlsWpfApp3\MainWindow.xaml.cs 33 26 RadControlsWpfApp3
)
)
0
Accepted
Hi,
Please find attached sample project for a reference.
Thank you for the feedback. I am glad to tell you that I have updated your telerik points. I will update the content in the help article as well.
All the best,
Didie
the Telerik team
Indeed you are right - the suggested solution works for Silverlight only.
In order to apply the application Theme for MS Button in WPF you should do the following:
public
MainWindow()
{
StyleManager.ApplicationTheme =
new
Expression_DarkTheme();
InitializeComponent();
}
<
Window.Resources
>
<
telerik:Expression_DarkTheme
x:Key
=
"Theme"
/>
<
Style
TargetType
=
"Button"
>
<
Setter
Property
=
"telerik:StyleManager.Theme"
Value
=
"{StaticResource Theme}"
/>
</
Style
>
</
Window.Resources
>
Please find attached sample project for a reference.
Thank you for the feedback. I am glad to tell you that I have updated your telerik points. I will update the content in the help article as well.
All the best,
Didie
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>