We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Changing background and menu group button in MenuAdv

Hello,

I would like to know if it is possible to delete grey background of this control.
Also How i can change looks of menu bar (MenuGroup1, MenuGroup2 looks exacly)?

Also I would like to align left side of MenuItems to right so it would not look so strange.

I mean:
Now is like this:
                         MenuGroup1 MenuGroup2
| MenuItem1                          |
-----------------------------------

I want this:
                         MenuGroup1 MenuGroup2
                         | MenuItem1                          |
                         -----------------------------------

Regards,
Jakub

Attachment: menuadv_problem_85a80228.zip

3 Replies

TB Thirupathi Bala Krishnan Syncfusion Team January 27, 2020 08:44 AM UTC

Hi Jakub, 
 
Thanks for contacting Syncfusion support. 
 
Please find our response as below, 
 
Query 
Response 
I would like to know if it is possible to delete grey background of this control. 
Also How i can change looks of menu bar (MenuGroup1, MenuGroup2 looks exacly)? 
 
We have analyzed the reported query – “How to change the backcolor value of MenuAdv control?”. You can achieve this requirement by overriding the MenuAdv styles in the xaml file. Then define the Background value for the menu control in the style definition. 
 
Please refer the following code sample. 
 
#MainWindow.xaml 
 
    <Window.Resources> 
        <Style x:Key="MenuAdvStyle" TargetType="{x:Type syncfusion:MenuAdv}"> 
            <Setter Property="Background" Value="AliceBlue"/> 
            <Setter Property="BorderBrush" Value="White"/> 
            <Setter Property="BorderThickness" Value="1"/> 
            <Setter Property="IsTabStop" Value="False"/> 
            <Setter Property="FontSize" Value="12"/> 
            <Setter Property="Foreground" Value="Black"/> 
            <Setter Property="FontFamily" Value="Calibri"/> 
            <Setter Property="ItemsPanel"> 
                <Setter.Value> 
                    <ItemsPanelTemplate> 
                        <StackPanel Orientation="Horizontal"/> 
                    </ItemsPanelTemplate> 
                </Setter.Value> 
            </Setter> 
            <Setter Property="Template"> 
                <Setter.Value> 
                    <ControlTemplate TargetType="syncfusion:MenuAdv"> 
                        <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}"> 
                            <ItemsPresenter></ItemsPresenter> 
                        </Border> 
                    </ControlTemplate> 
                </Setter.Value> 
            </Setter> 
        </Style> 
        <Style TargetType="{x:Type syncfusion:MenuAdv}" BasedOn="{StaticResource MenuAdvStyle}"/> 
    </Window.Resources> 
 
 
Also I would like to align left side of MenuItems to right so it would not look so strange. 
 
We have analyzed the reported query – “How to align the menu items from right side”.  
 
Please do the following steps in your machine to achieve your requirement.  
  1. Press the Windows key + R to open the run dialog.
  2. Type the below line in the run dialog –
  3. shell:::{80F3F1D5-FECA-45F3-BC32-752C152E456E}
  4. Now Tablet PC Settings configuration dialog opened.
  5. Select the Other Tab.
  6. In the Handedness section, place a check mark in the Left Handed option.
  7. Click OK.
  
Please refer the following screenshot for your reference.  
  
   
  
   
  
Now run and check your application.  
 
   
  
For more details, please refer the following link :  
 
 
 
Sample link: https://www.syncfusion.com/downloads/support/forum/150923/ze/MenuAdv-941462494

Please let us know if you need any further assistance.
 
 
Regards,
Thirupathi B.
 



JM Jakub Marcickiewicz January 27, 2020 10:26 AM UTC

Thank you for detailed reply.


PR Padmini Ramamurthy Syncfusion Team January 28, 2020 11:04 AM UTC

Hi Jakub, 
  
You are welcome:) and please get back to us if you need any other assistance. 
  
Regards, 
Padmini  


Loader.
Live Chat Icon For mobile
Up arrow icon