Revision 6aa29f4f trunk/Pithos.Client.WPF/Shell/ShellView.xaml

b/trunk/Pithos.Client.WPF/Shell/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"
7
         >
6
        x:Name="TheView" WindowStartupLocation="CenterScreen" WindowStyle="None"
7
        Width="700" Height="200" SizeToContent="Width">
8 8

  
9
    <Window.Background>
10
        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
11
            <GradientStop Color="#4085A5" Offset="0"/>
12
            <GradientStop Color="#D7E8F0" Offset="1"/>
13
        </LinearGradientBrush>
14
    </Window.Background>    
9 15
    <Window.Resources>
10 16
        <ResourceDictionary>
11 17
            <ResourceDictionary.MergedDictionaries>
12 18
                <ResourceDictionary Source="../PithosStyles.xaml" />
13 19
            </ResourceDictionary.MergedDictionaries>
20
            <BooleanToVisibilityConverter x:Key="BooleanToVisible" />
14 21
        </ResourceDictionary>
15 22
    </Window.Resources>
16 23
    <Grid>
......
27 34
                        >
28 35
            <tb:TaskbarIcon.ContextMenu>
29 36
                <ContextMenu x:Name="TaskbarMenu" >
30
                    <MenuItem Header="Open PITHOS Folder" x:Name="OpenPithosFolder" ItemsSource="{Binding Accounts}" >
37
                    <MenuItem Header="{Binding OpenFolderCaption}" IsEnabled="{Binding HasAccounts}" x:Name="OpenPithosFolder" ItemsSource="{Binding Accounts}" >
31 38
                        <MenuItem.ItemTemplate>
32 39
                            <DataTemplate>
33
                                <TextBlock x:Name="AccountLink" Text="{Binding Path=UserName}" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action OpenPithosFolder($dataContext)]" 
40
                                <TextBlock x:Name="AccountLink"  Text="{Binding Path=UserName}" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action OpenPithosFolder($dataContext)]" 
34 41
                                           cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=2}, Path=DataContext}" />
35 42
                            </DataTemplate>
36
                        </MenuItem.ItemTemplate>                        
37
                        </MenuItem> 
38
                    <MenuItem Header="Go to Account Site" x:Name="GoToSiteMenu" ItemsSource="{Binding Accounts}" >
43
                        </MenuItem.ItemTemplate>
44
                        <MenuItem.Icon>
45
                            <Image Source="/Pithos.Client.WPF;component/Images/Folder.ico" />
46
                        </MenuItem.Icon>
47
                    </MenuItem>
48
                    <MenuItem Header="Go to Account Site" x:Name="GoToSiteMenu" ItemsSource="{Binding Accounts}" Visibility="{Binding Path=HasAccounts, Converter={StaticResource BooleanToVisible}}" >
39 49
                        <MenuItem.ItemTemplate>
40 50
                            <DataTemplate>
41 51
                                <TextBlock x:Name="AccountLink" Text="{Binding Path=UserName}" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action GoToSite($dataContext)]" 
42 52
                                           cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=2}, Path=DataContext}" />
43 53
                            </DataTemplate>
44 54
                        </MenuItem.ItemTemplate>
55
                        <MenuItem.Icon>
56
                            <Image Source="/Pithos.Client.WPF;component/Images/Web.ico" />
57
                        </MenuItem.Icon>
45 58
                    </MenuItem>
46 59

  
47 60
                    <MenuItem Header="Recently Changed Files" x:Name="RecentFiles" ItemsSource="{Binding RecentFiles}">
......
70 83
                    <Separator  />
71 84
                    <MenuItem  Header="Preferences ..." x:Name="ShowPreferences" cal:Message.Attach="ShowPreferences"  />
72 85
                    <Separator  />
73
                    <MenuItem  Header="Send Feedback " x:Name="SendFeedback" cal:Message.Attach="SendFeedback"  />
74
                    <MenuItem  Header="About Pithos" x:Name="AboutPithos" cal:Message.Attach="AboutPithos"  />
86
                    <MenuItem  Header="Send Feedback" x:Name="SendFeedback" cal:Message.Attach="SendFeedback">
87
                        <MenuItem.Icon>
88
                            <Image Source="/Pithos.Client.WPF;component/Images/Feedback.ico" />
89
                        </MenuItem.Icon>
90
                    </MenuItem>
91
                    <MenuItem  Header="About Pithos" x:Name="AboutPithos" cal:Message.Attach="AboutPithos">
92
                        <MenuItem.Icon>
93
                            <Image Source="/Pithos.Client.WPF;component/Images/About.ico" />
94
                        </MenuItem.Icon>
95
                    </MenuItem>
96
                    <MenuItem x:Name="GoToSiteRootMenu"  cal:Message.Attach="[Event MouseLeftButtonUp]=[Action GoToSite()]"
97
                              cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=1}, Path=DataContext}" >
98
                        <MenuItem.HeaderTemplate>
99
                            <DataTemplate>
100
                                <TextBlock x:Name="SiteLink" Text="Go To Pithos Site" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action GoToSite()]" 
101
                                           cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=1}, Path=DataContext}" />
102
                            </DataTemplate>
103
                        </MenuItem.HeaderTemplate>
104
                        <MenuItem.Icon>
105
                            <Image Source="/Pithos.Client.WPF;component/Images/Web.ico" />
106
                        </MenuItem.Icon>
107
                    </MenuItem>
75 108
                    <Separator  />
76 109
                    <MenuItem  Header="Exit" Name="ExitPithos" cal:Message.Attach="ExitPithos" />
77 110
                </ContextMenu>
78 111
            </tb:TaskbarIcon.ContextMenu>
79 112
        </tb:TaskbarIcon>
80
        <Image Source="/Pithos.Client.WPF;component/Images/logo.png"/>
113
        <Image Margin="0,0,10,5" Source="/Pithos.Client.WPF;component/Images/logo.png" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Stretch="None"/>
81 114
    </Grid>
82 115
</Window>

Also available in: Unified diff