Revision 0bd56b7c trunk/Pithos.Client.WPF/ShellView.xaml

b/trunk/Pithos.Client.WPF/ShellView.xaml
3 3
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 4
        xmlns:tb="clr-namespace:Hardcodet.Wpf.TaskbarNotification;assembly=Hardcodet.Wpf.TaskbarNotification" 
5 5
        xmlns:cal="http://www.caliburnproject.org"
6
        x:Name="TheView"
6 7
         >
7 8

  
8 9
    <Window.Resources>
......
27 28
            <tb:TaskbarIcon.ContextMenu>
28 29
                <ContextMenu x:Name="TaskbarMenu" >
29 30
                    <MenuItem Header="Open PITHOS Folder" x:Name="OpenPithosFolder" cal:Message.Attach="OpenPithosFolder" FontWeight="Bold" />
30
                    <MenuItem Header="Launch PITHOS Site"  x:Name="GoToSite" cal:Message.Attach="GoToSite" />
31
                    <MenuItem Header="Go to Account Site" x:Name="GoToSiteMenu" ItemsSource="{Binding Accounts}" >
32
                        <MenuItem.ItemTemplate>
33
                            <DataTemplate>
34
                                <TextBlock x:Name="AccountLink" Text="{Binding Path=UserName}" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action GoToSite($dataContext)]" 
35
                                           cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=2}, Path=DataContext}" />
36
                            </DataTemplate>
37
                        </MenuItem.ItemTemplate>
38
                    </MenuItem>
39

  
31 40
                    <MenuItem Header="Recently Changed Files" x:Name="RecentFiles" ItemsSource="{Binding RecentFiles}">
32 41
                        <MenuItem.ItemTemplate>
33 42
                            <DataTemplate>
......
35 44
                            </DataTemplate>
36 45
                        </MenuItem.ItemTemplate>
37 46
                    </MenuItem>
38
                    <Separator  />
39
                    <MenuItem Header="{Binding UsageMessage}" x:Name="UsageMessage" />
47
                    <Separator  />                    
48
                    <MenuItem Header="Usage" x:Name="Usages" ItemsSource="{Binding Accounts}">
49
                        <MenuItem.ItemTemplate>
50
                            <DataTemplate>
51
                                <StackPanel Orientation="Horizontal">
52
                                    <TextBlock Text="{Binding UserName}" />
53
                                    <TextBlock Text=":" Margin="5,0"/>
54
                                    <TextBlock Text="{Binding Usage}" />
55
                                </StackPanel>
56
                            </DataTemplate>
57
                        </MenuItem.ItemTemplate>
58
                    </MenuItem>
40 59
                    <Separator  />
41 60
                    <MenuItem Header="{Binding StatusMessage}" x:Name="StatusMessage" />
42 61
                    <Separator  />

Also available in: Unified diff