Revision d78d765c trunk/Pithos.Client.WPF/Shell/ShellView.xaml

b/trunk/Pithos.Client.WPF/Shell/ShellView.xaml
39 39
            <tb:TaskbarIcon.ContextMenu>
40 40
                <ContextMenu x:Name="TaskbarMenu" >
41 41
                    <MenuItem Header="{Binding OpenFolderCaption}" IsEnabled="{Binding HasAccounts}" x:Name="OpenPithosFolder" ItemsSource="{Binding Accounts}" >                        
42
                        <MenuItem.ItemTemplate>
42
                        <MenuItem.ItemTemplate>                            
43 43
                            <DataTemplate>
44
                                <StackPanel>
45
                                <TextBlock x:Name="AccountLink"  Text="{Binding Path=UserName}" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action OpenPithosFolder($dataContext)]" 
46
                                           cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=2}, Path=DataContext}" />
44
                                <StackPanel 
45
                                        cal:Message.Attach="[Event MouseLeftButtonUp]=[Action OpenPithosFolder($dataContext)]" 
46
                                        cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=2}, Path=DataContext}" >
47
                                    <TextBlock x:Name="AccountLink"  Text="{Binding Path=UserName}" />
47 48
                                    <TextBlock Text="{Binding Path=StorageUri}" FontStyle="Italic" FontSize="10" />
48 49
                                </StackPanel>
49 50
                            </DataTemplate>
......
55 56
                    <MenuItem Header="Go to Account Site" x:Name="GoToSiteMenu" ItemsSource="{Binding Accounts}" Visibility="{Binding Path=HasAccounts, Converter={StaticResource BooleanToVisible}}" >
56 57
                        <MenuItem.ItemTemplate>
57 58
                            <DataTemplate>
58
                                <StackPanel>
59
                                    <TextBlock x:Name="AccountLink" Text="{Binding Path=UserName}" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action GoToSite($dataContext)]" 
60
                                               cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=2}, Path=DataContext}" />
59
                                <StackPanel 
60
                                        cal:Message.Attach="[Event MouseLeftButtonUp]=[Action GoToSite($dataContext)]" 
61
                                        cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=2}, Path=DataContext}" >
62
                                    <TextBlock x:Name="AccountLink" Text="{Binding Path=UserName}" />
61 63
                                    <TextBlock Text="{Binding Path=StorageUri}" FontStyle="Italic" FontSize="10" />
62 64
                                </StackPanel>
63 65
                            </DataTemplate>

Also available in: Unified diff