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
470
ContextMenu Item Text is not showing
posted

Hello ,

I have Xamdatagrid and there is a context Menu which i have to display when any Header is right click , My context Menu item is not showing the text of menu items when the menu display on the mouse right click in the Header.Below is the code which im using .Pls correct my code if there is any error.

<ContextMenu x:Key="PagingMnu" Background="AliceBlue" AllowDrop="True" Cursor="Hand" IsEnabled="True">
                <ContextMenu.Items>                  
                    <MenuItem  Header="Ten 10" Name="a10" />
                    <MenuItem Header="Twenty 20" Name="b20" />
                    <MenuItem Header="Thirty 30" Name="c30"/>
                </ContextMenu.Items>
</ContextMenu>

 <Style TargetType="igDP:HeaderLabelArea">

                <Setter Property="ContextMenu" Value="{StaticResource PagingMnu}"/>

 </Style>