Unable to change theme in RadSplitButton.Disabled

6 posts, 2 answers
  1. Felice
    Felice avatar
    198 posts
    Member since:
    Aug 2013

    Posted 06 Sep 2014 Link to this post

    Hi There,
    it is the first time I use the visual builder to change a theme. I need some help.
    Starting from the theme Visual Studio 20012 Dark, I have changed all settings in a radsplitButton.disabled to be the same of the normal status.
    However, when I visualize the theme in the style visualization and even when I try to apply it to a split button in a winform, all my my changes have no effect.

    <?xml version="1.0" encoding="utf-8"?>
    <XmlTheme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ThemeName="CustomSplitButton5" ThemeVersion="2.0">
      <BuilderRegistrations>
        <XmlStyleBuilderRegistration>
          <BuilderData xsi:type="XmlStyleSheet" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <PropertySettingGroups>
              <XmlPropertySettingGroup BasedOn="FontSegoeUI8.25">
                <Selectors>
                  <XmlTypeSelector ElementType="Telerik.WinControls.RootRadElement" />
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="Padding(-1;-1;-1;-1),NormalForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton" />
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ArrowPart" />
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Pressed" />
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.DropDownOpened" />
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="DisabledForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Disabled" />
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="LightGrayBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Disabled">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Pressed">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Pressed">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="FillGrayLight">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Disabled">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Pressed">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="LightGrayBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Disabled">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="ForeColorDarkGray,Padding(4;4;4;4)">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonArrowButton" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonArrowButton" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Pressed">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonArrowButton" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonArrowButton" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="DisabledForeColor,Padding(4;4;4;4)">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Disabled">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonArrowButton" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.ActionButtonElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.ActionButtonElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Pressed">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.ActionButtonElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.ActionButtonElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="DisabledForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Disabled">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.ActionButtonElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Pressed">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="FillGrayLight">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Disabled">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="BorderTransparent">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Disabled">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="">
                <PropertySettings>
                  <XmlPropertySetting Property="Telerik.WinControls.RadElement.Visibility" Value="Collapsed" />
                  <XmlPropertySetting Property="Telerik.WinControls.RadElement.Margin" Value="0, 0, 0, 5" />
                </PropertySettings>
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.LightVisualElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Pressed">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="">
                <PropertySettings>
                  <XmlPropertySetting Property="Telerik.WinControls.RadElement.Visibility" Value="Collapsed" />
                </PropertySettings>
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.Disabled">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.LightVisualElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SplitButtonOpenedBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ActionPart" />
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonArrowButton" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="DropDownButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.ActionButtonElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalForeColor">
                <PropertySettings>
                  <XmlPropertySetting Property="Telerik.WinControls.RadElement.Padding" Value="-1, -1, -1, -1" />
                </PropertySettings>
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton" />
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ActionPart" />
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ArrowPart" />
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Pressed" />
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.DropDownOpened" />
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Pressed">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="Padding(4;4;4;4),NormalForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonArrowButton" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonArrowButton" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonArrowButton" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Pressed">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonArrowButton" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonArrowButton" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Pressed">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Pressed">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Pressed">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Pressed">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="">
                <PropertySettings>
                  <XmlPropertySetting Property="Telerik.WinControls.RadElement.Visibility" Value="Collapsed" />
                  <XmlPropertySetting Property="Telerik.WinControls.RadElement.Margin" Value="0, 0, 0, 5" />
                </PropertySettings>
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Disabled">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.LightVisualElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="">
                <PropertySettings>
                  <XmlPropertySetting Property="Telerik.WinControls.RadElement.Margin" Value="0, 0, 0, 5" />
                  <XmlPropertySetting Property="Telerik.WinControls.RadElement.Visibility" Value="Collapsed" />
                </PropertySettings>
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.LightVisualElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.ActionButtonElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ActionPart">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.ActionButtonElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="HoverForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.MouseOver.ArrowPart">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.ActionButtonElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Pressed">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.ActionButtonElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="SelectedForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.DropDownOpened">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.ActionButtonElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Disabled">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Disabled" />
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Disabled">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Disabled">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="DropDownButtonArrowButton" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Disabled">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="RadArrowButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalForeColor">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Disabled">
                    <ChildSelector xsi:type="XmlTypeSelector" ElementType="Telerik.WinControls.UI.ActionButtonElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalFill">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Disabled">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonFill" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
              <XmlPropertySettingGroup BasedOn="NormalBorder">
                <Selectors>
                  <XmlVisualStateSelector VisualState="SplitButton.Disabled">
                    <ChildSelector xsi:type="XmlClassSelector" ElementClass="ButtonBorder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
                  </XmlVisualStateSelector>
                </Selectors>
              </XmlPropertySettingGroup>
            </PropertySettingGroups>
          </BuilderData>
          <StylesheetRelations>
            <RadStylesheetRelation ControlType="Telerik.WinControls.UI.RadSplitButton" ElementType="Telerik.WinControls.RootRadElement" />
            <RadStylesheetRelation RegistrationType="ElementTypeDefault" ElementType="Telerik.WinControls.UI.RadSplitButtonElement" />
            <RadStylesheetRelation RegistrationType="ElementTypeDefault" ElementType="Telerik.WinControls.UI.RadDropDownButtonElement" />
          </StylesheetRelations>
        </XmlStyleBuilderRegistration>
      </BuilderRegistrations>
    </XmlTheme>

    Some help will be appreciated.
  2. Answer
    Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 10 Sep 2014 Link to this post

    Hi Felice, 

    Thank you for contacting us. 

    If you want to change the default disable painting, you need to set UseDefaultDisabledPaint property to false. You can follow these steps to modify the theming of the split button: 
    1. Export the built-in themes
    2. Load VisualStudio2012Dark theme
    3. Open RadSplitButton and set UseDefaultDisabledPaint to false of RootElement. If you do not see the property, select No filter option from dropdown list. 
    4. Click on RadSplitButtonElement, select Disable state.
    5. Open RadSplitButtonElement, set UseDefaultDisabledPaint to false
    6. Open SplitButtonArrowpart, set UseDefaultDisabledPaint to false
    7. Open SplitButtonActionPart, set UseDefaultDisabledPaint to false
    8. Open SplitButtonActionFill, uncheck FillGrayLight repository.

    I have attached video (drag and drop over the browser to play), which follow the steps and demonstrates you how you can change the style. 

    Should you have further questions, I would be glad to help.

    Regards,
    Ralitsa
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Felice
    Felice avatar
    198 posts
    Member since:
    Aug 2013

    Posted 10 Sep 2014 in reply to Ralitsa Link to this post

    Hi Ralitsa,
    thanks a lot for your answer. I will try that way.
    Please note that there is no movie attached, it is a zip folder with png inside it.

    Kind regards
  5. Felice
    Felice avatar
    198 posts
    Member since:
    Aug 2013

    Posted 10 Sep 2014 in reply to Ralitsa Link to this post

    Hi Ralitsa,
    thanks again for your help. Please note that I have followed the instructions step by step but when I visualize the modified theme in ThemeViewer, the disable state affect also the RadSplitButton. I have uploaded the modified theme, I would really appreciate if you can advice me about what is wrong.

    Thanks,
    Felice
  6. Answer
    Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 15 Sep 2014 Link to this post

    Hi Felice, 

    Thank you for contacting us again. 

    You need to download the zip file, extract the file and drag and drop over the browser to play. The file which I have attached in my previous post is with extension swf, not png.   

    When I loaded your theme and click 'Preview in Theme viewer', the disable painting is changed. Please see attached images. Could you please explain me with more details what is wrong in theming. It would be helpful if you send me image (png or jpeg) what you want to change in the theme.
     
    I am looking forward to your reply.

    Regards,
    Ralitsa
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  7. Felice
    Felice avatar
    198 posts
    Member since:
    Aug 2013

    Posted 16 Sep 2014 in reply to Ralitsa Link to this post

    Thats grate! Thank you. Problem solved.
Back to Top
UI for WinForms is Visual Studio 2017 Ready