зеркало из https://github.com/telerik/xaml-sdk.git
c94f26461f | ||
---|---|---|
.. | ||
Properties | ||
App.config | ||
App.xaml | ||
App.xaml.cs | ||
App_SL.xaml | ||
App_SL.xaml.cs | ||
Example.xaml | ||
Example.xaml.cs | ||
MainPage.xaml | ||
MainPage.xaml.cs | ||
MainWindow.xaml | ||
MainWindow.xaml.cs | ||
Readme.md | ||
ToolBarCustomStyledElements_SL.csproj | ||
ToolBarCustomStyledElements_WPF.csproj |
Readme.md
Tool Bar Custom Styled Elements
The ToolBarCustomStyledElements project demonstrates the correct approach for setting a custom style on element placed in RadToolbar. The toolbar has predefined styles for radbutton, textblock, raddropdownbutton, etc. In order to edit and use successfully these styles / or to use custom styles for the elements in the toolbar you have to override the ToolBarContainerStyleSelector of the RadToolbar. Add a ContainerStyle targetting the specific control, add its predefined style and add/edit/override the properties you need. Setting directy style on the elements in the toolbar is not correct, does not work in WPF and works partially in Silverlight.