Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
390
Remove the left side rectangle of the XamMenu popup
posted

Hi,

I want to remove the rectangle on the left side of XamMenu popup(see attachment, the rectangle with red line around it). I create a copy of the default style of the XamMenuItem and set it to the XamMenuItem and in the control template part of that style, I change the IconPlace' width to zero as following:

<ContentPresenter x:Name="MenuItemPresenter" Opacity="1" Visibility="Visible">
               <Grid>
                <Grid.ColumnDefinitions>
                 <ColumnDefinition x:Name="IconPlace" Width="0"/>
                 <ColumnDefinition Width="*"/>

, because i believe the IconPlace is the place where the rectangle stands. But it doesn't work, the rectangle is still there. How can I remove the rectangle or change its appearance, for example, set the rectangle to be transparent?