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> 

Parents Reply Children
  • 5
    posted in reply to brian

    I added    xmlns:igThemes="http://infragistics.com/Themes"

    and

        <UserControl.Resources>
            <ResourceDictionary>
                <ResourceDictionary.MergedDictionaries>
                    <igThemes:PrimitivesLunaNormal/>
                    <igThemes:DataPresenterLunaNormal/>
                </ResourceDictionary.MergedDictionaries>
            </ResourceDictionary>
        </UserControl.Resources>

    and   Theme="LucidDream"   to the   igDP:XamDataGrid   control tag

    but adding these had no effect on grid appearance.  Where is the theme "LucidDream" declared?  The post for "Setting Themes" did not include a the need to set a theme specifically on the XamDataGrid control.  See http://help.infragistics.com/Help/NetAdvantage/WPF/2009.1/CLR3.X/html/WPF_Using_Themes.html

    If it matters, I've been working with the following in the App.xaml file:

        <Application.Resources>
            <ResourceDictionary Source="Resources/BureauBlue.xaml"/>       
        </Application.Resources>

    HELP!