﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - context menu issue</title><link>http://www.intersoftsolutions.com/Community/ClientUI/context-menu-issue/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>context menu issue</title><link>http://www.intersoftsolutions.com/Community/ClientUI/context-menu-issue/</link><pubDate>Mon, 11 Mar 2013 02:28:39 GMT</pubDate><dc:creator>yudi</dc:creator><category>context menu issue</category><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Thank you for your recent inquiry regarding UXContextMenu.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Could you please provide more information about your scenario? From the given snippet code, it seems that you are trying to attach the UXContextMenu control to UXGridView. As you may know, UXGridView already has their own built-in context menu. I’d like to suggest you to modify the built-in context menu of UXGrid for your required scenario.&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;can I simply use Command={Binding DoSomething}&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;The item container type of UXContextMenu is UXMenuItem. UXMenuItem implements both ICommandSource and INavigationSource to support commanding and navigation, which is shown in the following snippet code.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;Grid x:Name="LayoutRoot" Background="White" Intersoft:ContextMenuService.ContextMenu="{Binding ElementName=ContextMenu1}"&amp;gt;
    &amp;lt;Grid.DataContext&amp;gt;
        &amp;lt;vm:MainPageViewModel /&amp;gt;
    &amp;lt;/Grid.DataContext&amp;gt;
    &amp;lt;Intersoft:UXContextMenu x:Name="ContextMenu1" HorizontalAlignment="Left" VerticalAlignment="Top"&amp;gt;
        &amp;lt;Intersoft:UXMenuItem Header="Sort By"&amp;gt;
            &amp;lt;Intersoft:UXMenuItem Header="Name" Command="{Binding SortCommand}" CommandParameter="Name"/&amp;gt;
            &amp;lt;Intersoft:UXMenuItem Header="Type" Command="{Binding SortCommand}" CommandParameter="Type"/&amp;gt;
            &amp;lt;Intersoft:UXMenuItem Header="Size" Command="{Binding SortCommand}" CommandParameter="Size"/&amp;gt;
        &amp;lt;/Intersoft:UXMenuItem&amp;gt;
        &amp;lt;Intersoft:UXMenuItem Header="Properties"/&amp;gt;
        &amp;lt;Intersoft:UXMenuItem Header="About Us" NavigateUri="www.mywebsite.com" TargetName="_blank"/&amp;gt;
    &amp;lt;/Intersoft:UXContextMenu&amp;gt;
&amp;lt;/Grid&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;You can do commanding through Command, CommandTarget, and CommandParameter properties and navigation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>context menu issue</title><link>http://www.intersoftsolutions.com/Community/ClientUI/context-menu-issue/</link><pubDate>Sat, 09 Mar 2013 08:17:39 GMT</pubDate><dc:creator>zen8019</dc:creator><category>context menu issue</category><description>&lt;p&gt;I get this error (see attached) when I try and use context menu and how to I use with MVVM - can I simply use Command={Binding DoSomething} - thanks&lt;/p&gt;&lt;p /&gt;&lt;pre&gt;  
            &amp;lt;Intersoft:UXContextMenu x:Name="SampleControl1"&amp;gt;
                &amp;lt;Intersoft:UXMenuItem Header="Edit" /&amp;gt;
                &amp;lt;Intersoft:UXMenuItem Header="Delete"  /&amp;gt;
            &amp;lt;/Intersoft:UXContextMenu&amp;gt;
            &amp;lt;Intersoft:UXGridView Name="MainGrid" Margin="0,0,0,5" AutoGenerateColumns="False"  CanUserGroupColumns="True" CheckedItems="{Binding CheckedItems, Mode=TwoWay}"
                                  CanUserPage="True" GridLinesVisibility="Horizontal" Intersoft:ContextMenuService.ContextMenu="SampleControl1"
                                  GroupByBoxVisibility="{Binding GroupByBoxVisibility, Converter={StaticResource VisibilityConverter}}"
                                  IsBusy="{Binding IsBusy, Mode=TwoWay}" ItemsSource="{Binding Path=GridList, Mode=TwoWay}" IsTabStop="False"
                                  PageSize="{Binding PageSize, Mode=TwoWay}" SelectedItem="{Binding Path=SelectedItem, Mode=TwoWay}" SelectedIndex="{Binding SelectedIndex,Mode=TwoWay}"
                                  Intersoft:DockPanel.IsFillElement="True" CanUserExport="True" AutoEditOperation="False" AlternatingRowBackground="{x:Null}" Background="White"&amp;gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;</description></item></channel></rss>