title: Showing multiple Context menu in WPF grid row
body: <p>I wish to have two context menu in grid view in my WPf based desktop application .
  Currently i am able to display one context menu, but I want to show context menu 1 on one condition and context menu 2 on another condition . How to do that?</p>
  
  <p>I am usign following XAML code to show grid and context menu</p>
  
  <pre><code>&lt;dg:UCGrid x:Name="grdLetVariables" Grid.Row="2" GridTypeSource="LetGrid"
                                                   DataContext="{Binding}" &gt;
                                  &lt;dg:UCGrid.Resources&gt;
                                      &lt;x:Array Type="{x:Type sys:Object}" x:Key="GridExtensions"&gt;
                                          &lt;MenuItem Header="Delete" Click="ContextMenuDelete"&gt;
                                              &lt;MenuItem.Icon&gt;
                                                  &lt;Image Height="10" Source="../images/Delete.png"/&gt;
                                              &lt;/MenuItem.Icon&gt;
                                          &lt;/MenuItem&gt;
                                          &lt;Separator /&gt;
                                          &lt;MenuItem Header="Move Up" Click="MoveUpLetGrdRow"&gt;
                                              &lt;MenuItem.Icon&gt;
                                                  &lt;Image Height="14" Source="../images/UpMove.png"/&gt;
                                              &lt;/MenuItem.Icon&gt;
                                          &lt;/MenuItem&gt;
                                          &lt;MenuItem Header="Move Down" Click="MoveDownLetGrdRow"&gt;
                                              &lt;MenuItem.Icon&gt;
                                                  &lt;Image Height="14" Source="../images/DownMove.png"/&gt;
                                              &lt;/MenuItem.Icon&gt;
                                          &lt;/MenuItem&gt;
                                          &lt;Separator /&gt;
                                          &lt;MenuItem Header="Cancel" Click="CancelLetGrdRowEdit"/&gt;
                                      &lt;/x:Array&gt;
                                  &lt;/dg:UCGrid.Resources&gt;
                                  &lt;dg:UCGrid.ContextMenu&gt;
                                      &lt;ContextMenu&gt;
                                          &lt;ContextMenu.ItemsSource&gt;
                                              &lt;CompositeCollection&gt;
                                                  &lt;CollectionContainer Collection="{StaticResource GridExtensions}" /&gt;
                                              &lt;/CompositeCollection&gt;
                                          &lt;/ContextMenu.ItemsSource&gt;
                                      &lt;/ContextMenu&gt;
                                  &lt;/dg:UCGrid.ContextMenu&gt;
                              &lt;/dg:UCGrid&gt;
                          &lt;/Grid&gt;
  </code></pre>