Hi Jon,
The
RadToolBar controls has a predefined
ItemContainerStyleSelector that sets default styles to the following types of elements:
RadToolBarSeparator,
TextBlock,
TextBox,
Button,
ToggleButton,
CheckBox,
RadioButton,
RadButton,
RadToggleButton,
RadRadioButton,
RadDropDownButton,
RadSplitButton.
However, the
ItemContainerStyleSelector can only be applied to direct children of the listed types and since in your case, the
TextBox and
RadButton are wrapped in another control before added to the
RadToolBar you'll need to define a custom style for them. I attached a sample project that contains the predefined styles for the
RadToolBar and its children. I also added a custom control with a
TextBox and
RadButton and I copied the
RadToolBar TextBox and
RadButton predefined styles and I applied it to the controls in the
CustomControl. Please have a look at the solution and let me know if it helps.
Best wishes,
Tina Stancheva
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward!
We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>