Fixed loop limit bug in Task.TryRemove for the ObservableConcurrentCollection.
[pithos-ms-client] / trunk / Pithos.Client.WPF / Shell / ShellView.xaml
index 0ecc694..3ed44c7 100644 (file)
@@ -63,7 +63,8 @@
                     <MenuItem Header="Recently Changed Files" x:Name="RecentFiles" ItemsSource="{Binding RecentFiles}">
                         <MenuItem.ItemTemplate>
                             <DataTemplate>
-                                <TextBlock Text="{Binding FileName}"/>
+                                <TextBlock Text="{Binding FileName}" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action GoToFile($dataContext)]" 
+                                           cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=2}, Path=DataContext}" />
                             </DataTemplate>
                         </MenuItem.ItemTemplate>
                     </MenuItem>