Style ToolCommand DropDownButton Items

1 reply. Last post: August 29, 2012 11:56 PM by Hans Kristian
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Jeremy CarrMember

Can you provide a simple example that illustrates styling a ToolCommand with the type DropDownButton.  The menu that pops down seems to always look the same regardless of the menu style settings I set on the WebToolbar.  I do not want to use the default blue highlight.


<ISWebDesktop:WebToolBar ID="WebToolBar1" runat="server" 
            AddRemoveOptionMenuViewMode="Default" AllowCustomize="Default" 
            AllowDockBottom="Default" AllowDockLeft="Default" AllowDockRight="Default" 
            AllowDockTop="Default" AllowExpandCollapse="Default" AllowFloat="Default" 
            AllowMove="Default" AutoPostBack="No" BarStyle="Default" Caption="WebToolBar1" 
            CommandSize="" DisplayAccessKeyOnToolTip="Default" DisplayMode="Default" 
            DisplayToolTip="Default" DockingArea="NotSet" FillDockingRow="Yes" 
            GreyImageWhenDisabled="Default" HandleVisible="Default" HeaderHeight="" 
            IntegratedTo="None" IsFloat="Default" NewDockingArea="NotSet" NewDockingRow="0" 
            NewIsFloat="Default" SizeMode="Automatic" TextAlign="Default" Width="100%">
            <Commands>
                <ISWebDesktop:ToolCommand Category="WebToolBar1" Name="cmdCommand1" 
                    Text="Command1" Type="DropDownButton">
                    <Items>
                        <ISWebDesktop:WebMenuItem Name="mnutxt1" Text="txt1">
                        </ISWebDesktop:WebMenuItem>
                        <ISWebDesktop:WebMenuItem Name="mnutxt2" Text="txt2">
                        </ISWebDesktop:WebMenuItem>
                    </Items>
                </ISWebDesktop:ToolCommand>
            </Commands>
            <CommandStyle>
                <Normal BackColor="#660066">
                </Normal>
                <Over BackColor="#009999">
                </Over>
                <Active BackColor="#333399">
                </Active>
            </CommandStyle>
            <MenuStyleSettings MenuWindowType="Normal">
                <ItemStyle>
                <Over BackColor="Red">
                </Over>
                </ItemStyle>
                <CustomStyle BackColor="#009933">
                </CustomStyle>
            </MenuStyleSettings>
        </ISWebDesktop:WebToolBar>

 Thanks.


Jer.

All times are GMT -5. The time now is 1:39 AM.
Previous Next