Revision 5bcf6d70 trunk/Pithos.Client.WPF/PreferencesView.xaml

b/trunk/Pithos.Client.WPF/PreferencesView.xaml
2 2
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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
        xmlns:cal="http://www.caliburnproject.org" Title="Pithos Preferences" Height="382" Width="445" WindowStartupLocation="CenterScreen" Background="#FFD4D0C8">
5
        xmlns:cal="http://www.caliburnproject.org" 
6
        x:Name="TheView"
7
        Title="Pithos Preferences" Height="382" Width="445" 
8
        ShowInTaskbar="true"
9
        WindowStartupLocation="CenterScreen"
10
        Icon="/Pithos.Client.WPF;component/Images/Tray.ico"
11
        Background="#FFD4D0C8">
6 12
    <Window.Resources>
7 13
        <ResourceDictionary>
8 14
        <ResourceDictionary.MergedDictionaries>
......
10 16
            </ResourceDictionary.MergedDictionaries>
11 17
        </ResourceDictionary>
12 18
    </Window.Resources>
13
    
19
    <Window.TaskbarItemInfo>
20
        <TaskbarItemInfo Description="{Binding StatusMessage}" >
21
            <TaskbarItemInfo.ThumbButtonInfos>
22
                <ThumbButtonInfo>
23
                    
24
                </ThumbButtonInfo>
25
            </TaskbarItemInfo.ThumbButtonInfos>
26
        </TaskbarItemInfo>
27
    </Window.TaskbarItemInfo>
14 28
    <Grid>
15 29
        <Grid.RowDefinitions>
16 30
            <RowDefinition Height="*"/>
17 31
            <RowDefinition Height="Auto"/>
18 32
        </Grid.RowDefinitions>
19 33

  
20
        <tb:TaskbarIcon x:Name="PithosIcon"                           
21
                        IconSource="{Binding StatusIcon}"
34
        <tb:TaskbarIcon x:Name="TaskbarView"                           
35
                        IconSource="{Binding StatusIcon}" 
22 36
                        ToolTipText="{Binding StatusMessage}"
23
                        
37
                        DataContext="{Binding Taskbar}"
24 38
                        MenuActivation="LeftOrRightClick" 
25
                        DoubleClickCommand="{Binding OpenPithosFolderCommand}">
39
                        DoubleClickCommand="{Binding DataContext.Taskbar.OpenPithosFolderCommand,ElementName=TheView}"                         
40
                        cal:Bind.Model="{Binding DataContext.Taskbar,ElementName=TheView}">
26 41
            <tb:TaskbarIcon.ContextMenu>
27 42
                <ContextMenu x:Name="TaskbarMenu" >
28
                    <MenuItem Header="Open PITHOS Folder" x:Name="OpenPithosFolder" cal:Message.Attach="OpenPithosFolder" />
43
                    <MenuItem Header="Open PITHOS Folder" x:Name="OpenPithosFolder" cal:Message.Attach="OpenPithosFolder" FontWeight="Bold" />
29 44
                    <MenuItem Header="Launch PITHOS Site"  x:Name="GoToSite" cal:Message.Attach="GoToSite" />
30
                    <MenuItem Header="Recently Changed Files" x:Name="RecentFiles" ItemsSource="{Binding RecentFiles}">
45
                    <MenuItem Header="Recently Changed Files" x:Name="Taskbar_RecentFiles" ItemsSource="{Binding RecentFiles}">
31 46
                            <MenuItem.ItemTemplate>
32 47
                                <DataTemplate>
33 48
                                    <TextBlock Text="{Binding FileName}"/>
......
39 54
                    <Separator  />
40 55
                    <MenuItem Header="{Binding StatusMessage}" x:Name="StatusMessage" />
41 56
                    <Separator  />
42
                    <MenuItem  Header="Pause Synching" x:Name="ToggleSynching" cal:Message.Attach="ToggleSynching"  />
57
                    <MenuItem  Header="{Binding PauseSyncCaption}" x:Name="ToggleSynching" cal:Message.Attach="ToggleSynching"  />
43 58
                    <Separator  />
44
                    <MenuItem  Header="Preferences ..." x:Name="ShowPreferences" cal:Message.Attach="ShowPreferences"  />
59
                    <MenuItem  Header="Preferences ..." x:Name="ShowPreferences"  Click="ShowPreferences_Click" cal:Message.Attach="ShowPreferences" />
45 60
                    <Separator  />
46 61
                    <MenuItem  Header="Exit" Name="ExitPithos" cal:Message.Attach="ExitPithos" />
47 62
                </ContextMenu>
......
50 65

  
51 66

  
52 67

  
53
        <TabControl Grid.Row="0">            
54
            <TabItem >
68
        <TabControl Grid.Row="0">  
69
            <TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
55 70
                <TabItem.Header>
56 71
                    <StackPanel>
57 72
                        <Image Source="/Pithos.Client.WPF;component/Images/General.png" Stretch="Uniform" Height="32"/>
......
65 80
                    </StackPanel>
66 81
                </GroupBox>
67 82
            </TabItem>
68
            <TabItem >
83
            <TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
69 84
                <TabItem.Header>
70 85
                    <StackPanel>
71 86
                        <Image Source="/Pithos.Client.WPF;component/Images/Accounts.png" Stretch="Uniform" Height="32"/>
72 87
                        <TextBlock Text="Accounts"/>
73 88
                    </StackPanel>
74 89
                </TabItem.Header>
75
                <StackPanel Orientation="Horizontal">
90
                <StackPanel Orientation="Horizontal" VerticalAlignment="Stretch" >
76 91
                    <Grid Margin="5,10,5,5">
77 92
                        <Grid.RowDefinitions>
78 93
                            <RowDefinition Height="*"/>
79 94
                            <RowDefinition Height="Auto"/>
80 95
                        </Grid.RowDefinitions>
81
                        <ListBox Name="Settings_Accounts" SelectedItem="{Binding CurrentAccount}" Grid.Row="0" DisplayMemberPath="AccountName" VerticalAlignment="Stretch" >
82
                            
96
                        <ListBox Name="Settings_Accounts" SelectedItem="{Binding CurrentAccount}" Grid.Row="0" 
97
                                 VerticalAlignment="Stretch" >
98
                            <ListBox.ItemTemplate>
99
                                <DataTemplate>
100
                                    <TextBlock Text="{Binding AccountName}"/>
101
                                </DataTemplate>
102
                            </ListBox.ItemTemplate>
83 103
                        </ListBox>
84 104
                        <StackPanel Orientation="Horizontal" Grid.Row="1">
85 105
                            <Button Name="AddAccount" Content="Add" Style="{StaticResource ButtonStyle}" Width="50"/>
......
107 127
                    </GroupBox>
108 128
                </StackPanel>
109 129
            </TabItem>
110
            <TabItem >
130
            <TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
111 131
                <TabItem.Header>
112 132
                    <StackPanel>
113 133
                        <Image Source="/Pithos.Client.WPF;component/Images/Bandwidth.png" Stretch="Uniform" Height="32"/>
......
123 143
                    </GroupBox>
124 144
                </StackPanel>
125 145
            </TabItem>
126
            <TabItem >
146
            <TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
127 147
                <TabItem.Header>
128 148
                    <StackPanel>
129 149
                        <Image Source="/Pithos.Client.WPF;component/Images/Network.png" Stretch="Uniform" Height="32"/>
......
132 152
                </TabItem.Header>
133 153
                <GroupBox Header="Proxy Settings" Height="275"  Margin="10,5" VerticalAlignment="Top" Width="396">
134 154
                    <Grid>
135
                        <RadioButton Content="No Proxy" Margin="5,2,5,2" Height="16" VerticalAlignment="Top"/>
136
                        <RadioButton Content="Use System Defaults" Margin="5,22,5,2" Height="16" VerticalAlignment="Top"/>
137
                        <RadioButton Content="Manual" Margin="5,42,5,2" Height="16" VerticalAlignment="Top"/>
138
                        <Label Content="Proxy Type" Height="28" HorizontalAlignment="Left" Margin="5,56,0,0" Name="label1" VerticalAlignment="Top" Target="{Binding}" />
139
                        <ComboBox Height="23" HorizontalAlignment="Left" Margin="76,61,0,0" Name="Settings_ProxyType" VerticalAlignment="Top" Width="71">
140
                            <ComboBoxItem Content="HTTP" IsSelected="True" />
141
                            <ComboBoxItem Content="SOCKS4" />
142
                            <ComboBoxItem Content="SOCKS5" />
143
                        </ComboBox>
144
                        <Label Content="Server" Height="28" HorizontalAlignment="Left" Margin="7,86,0,0" Name="label2" VerticalAlignment="Top" />
145
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="76,90,0,0" Name="Settings_ProxyServer" VerticalAlignment="Top" Width="162" />
146
                        <TextBlock Height="23" HorizontalAlignment="Left" Margin="244,90,0,0" Name="textBlock1" Text=":" VerticalAlignment="Top" />
147
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="254,90,0,0" Name="Settings_ProxyPort" VerticalAlignment="Top" Width="65" />
148
                        
149
                        <GroupBox Height="109" HorizontalAlignment="Left" Margin="7,119,0,0" Name="groupBox2" VerticalAlignment="Top" Width="373" >
155
                        <RadioButton Name="Settings_UseDefaultProxy" Content="Use System Defaults" Margin="5,6,5,0" Height="16" VerticalAlignment="Top"/>
156
                        <RadioButton Name="Settings_UseManualProxy" Content="Manual" Margin="5,28,5,0" Height="16" VerticalAlignment="Top"/>
157
                        <Label Content="Server" Height="28" HorizontalAlignment="Left" Margin="5,47,0,0" Name="label2" VerticalAlignment="Top" />
158
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="76,51,0,0" Name="Settings_ProxyServer" VerticalAlignment="Top" Width="162" IsEnabled="{Binding ElementName=Settings_UseManualProxy, Path=IsChecked}"/>
159
                        <TextBlock Height="23" HorizontalAlignment="Left" Margin="244,51,0,0" Name="textBlock1" Text=":" VerticalAlignment="Top" />
160
                        <TextBox Height="23" HorizontalAlignment="Left" Margin="254,51,0,0" Name="Settings_ProxyPort" VerticalAlignment="Top" Width="65" IsEnabled="{Binding ElementName=Settings_UseManualProxy, Path=IsChecked}"/>
161

  
162
                        <GroupBox Height="109" HorizontalAlignment="Left" Margin="5,80,0,0" Name="groupBox2" VerticalAlignment="Top" Width="373" IsEnabled="{Binding ElementName=Settings_UseManualProxy, Path=IsChecked}">
150 163
                            <GroupBox.Header>
151 164
                                <CheckBox Content="Proxy requires authentication" Height="16" VerticalAlignment="Top" Name="Settings_ProxyAuthentication" />
152 165
                            </GroupBox.Header>
153
                            <Grid>
166
                            <Grid >
154 167
                                <Label Content="Username" Height="28" HorizontalAlignment="Left" Margin="0,6,0,0" Name="label3" VerticalAlignment="Top" />
155 168
                                <Label Content="Password" Height="28" HorizontalAlignment="Left" Margin="0,32,0,0" Name="label4" VerticalAlignment="Top" />
156
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="65,6,0,0" Name="Settings_ProxyUsername" VerticalAlignment="Top" Width="157" />
157
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="65,37,0,0" Name="Settings_ProxyPassword" VerticalAlignment="Top" Width="157" />
169
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="65,6,0,0" Name="Settings_ProxyUsername" VerticalAlignment="Top" Width="157" IsEnabled="{Binding IsChecked,ElementName=Settings_ProxyAuthentication}"/>
170
                                <TextBox Height="23" HorizontalAlignment="Left" Margin="65,37,0,0" Name="Settings_ProxyPassword" VerticalAlignment="Top" Width="157" IsEnabled="{Binding IsChecked,ElementName=Settings_ProxyAuthentication}"/>
158 171
                            </Grid>
159 172
                        </GroupBox>
160 173
                    </Grid>
161 174
                </GroupBox>
162 175
            </TabItem>
163
            <TabItem >
176
            <TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
164 177
                <TabItem.Header>
165 178
                    <StackPanel>
166 179
                        <Image Source="/Pithos.Client.WPF;component/Images/Advanced.png" Stretch="Uniform" Height="32"/>
......
176 189
                    </Grid>
177 190
                </GroupBox>
178 191
                    <CheckBox Content="Activate Shell Extensions" Height="16" HorizontalAlignment="Left" Margin="5" Name="ExtensionsActivated" VerticalAlignment="Top" />
192
                    <Button Content="Refresh Overlays" Name="RefreshOverlays" HorizontalAlignment="Left" Margin="5" Style="{StaticResource ButtonStyle}" Width="Auto" />
179 193
                </StackPanel>
180 194
            </TabItem>
181 195
        </TabControl>

Also available in: Unified diff