Quantcast
Channel: Silverlight Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 801

Commented Issue: Context Menu [6206]

$
0
0
<p>I create ItemsControl: </p>
<p> &lt;ItemsControl Grid.ColumnSpan=&quot;3&quot; ItemsSource=&quot;{Binding MyItemsSource}&quot; ItemTemplate=&quot;{StaticResource MyDataTemplate}&quot; /&gt;</p>
<p>&nbsp;</p>
<p>ItemsControl has MyDataTemplate:</p>
<p>&nbsp;</p>
<p>&lt;DataTemplate x:Key=&quot;DayShiftViewModelDataTemplate&quot;&gt;</p>
<p> &lt;Grid Background=&quot;Red&quot;&gt;</p>
<p> &lt;TextBlock Text=&quot;FooText&quot;/&gt; </p>
<p> &lt;controlsInputToolkit:ContextMenuService.ContextMenu&gt;</p>
<p> &lt;controlsInputToolkit:ContextMenu &gt;</p>
<p> &lt;controlsInputToolkit:MenuItem UseLayoutRounding=&quot;False&quot; Header=&quot;asdfsdf&quot; Command=&quot;{Binding AddNewShiftCommand}&quot;/&gt;</p>
<p> &lt;/controlsInputToolkit:ContextMenu&gt;</p>
<p> &lt;/controlsInputToolkit:ContextMenuService.ContextMenu&gt;</p>
<p> &lt;/Grid&gt; </p>
<p> &lt;/DataTemplate&gt;</p>
<p>&nbsp;</p>
<p>When I clear the collection of ItemsSource and add new elements , my application starts to slow.</p>
<p>If I delete Context Menu from DataTemplate, application works well.</p>

Comments: ** Comment from web user: davemateer **

I too struggled with this. In fact I couldn't get the it to work, and ended up implementing my own right click events which drew a menu, and gave me what I needed. Would be great to see an example of a 'fix' here working -

I tried: apudale wrote Oct 17 at 7:28 AM's ... comment... looked good.. but couldn't get it to work.


Viewing all articles
Browse latest Browse all 801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>