1 <Window x:Class="Pithos.Client.WPF.PreferencesView"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 xmlns:tb="clr-namespace:Hardcodet.Wpf.TaskbarNotification;assembly=Hardcodet.Wpf.TaskbarNotification"
5 xmlns:cal="http://www.caliburnproject.org"
7 Title="Pithos Preferences" Height="381" Width="600"
9 WindowStartupLocation="CenterScreen"
10 Icon="/Pithos.Client.WPF;component/Images/Tray.ico"
11 Background="#FFD4D0C8">
14 <ResourceDictionary.MergedDictionaries>
15 <ResourceDictionary Source="..\PithosStyles.xaml" />
16 </ResourceDictionary.MergedDictionaries>
19 <!-- <Window.TaskbarItemInfo>
20 <TaskbarItemInfo Description="{Binding StatusMessage}" >
21 <TaskbarItemInfo.ThumbButtonInfos>
25 </TaskbarItemInfo.ThumbButtonInfos>
27 </Window.TaskbarItemInfo>-->
30 <RowDefinition Height="*"/>
31 <RowDefinition Height="Auto"/>
32 </Grid.RowDefinitions>
35 <TabControl Grid.Row="0">
36 <TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
39 <Image Source="/Pithos.Client.WPF;component/Images/General.png" Stretch="Uniform" Height="32"/>
40 <TextBlock Text="General"/>
43 <GroupBox Height="66" VerticalAlignment="Top" Name="groupBox1" Margin="10,5">
45 <CheckBox Content="Show Desktop Notifications" Height="16" Name="Settings_ShowDesktopNotifications" Margin="5,10,5,0" />
46 <CheckBox Content="Start on System Startup" Height="16" Name="StartOnSystemStartup" Margin="5,5,5,0" />
50 <TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
53 <Image Source="/Pithos.Client.WPF;component/Images/Accounts.png" Stretch="Uniform" Height="32"/>
54 <TextBlock Text="Accounts"/>
57 <Grid VerticalAlignment="Stretch" >
58 <Grid.ColumnDefinitions>
59 <ColumnDefinition Width="Auto"/>
60 <ColumnDefinition Width="*"/>
61 </Grid.ColumnDefinitions>
62 <Grid Margin="5,10,5,5" Column="0" Width="250">
64 <RowDefinition Height="*"/>
65 <RowDefinition Height="Auto"/>
66 </Grid.RowDefinitions>
67 <ListBox Name="Accounts" Grid.Row="0" VerticalAlignment="Stretch" ItemsSource="{Binding Accounts,Mode=OneWay}" SelectedItem="{Binding CurrentAccount,Mode=TwoWay}" >
68 <ListBox.ItemTemplate>
70 <TextBlock Text="{Binding AccountName}" />
72 </ListBox.ItemTemplate>
74 <StackPanel Orientation="Horizontal" Grid.Row="1">
75 <Button Name="AddPithosAccount" Content="Add Pithos" Style="{StaticResource ButtonStyle}" Width="70"/>
76 <Button Name="AddAccount" Content="Add Manual" Style="{StaticResource ButtonStyle}" Width="70"/>
77 <Button Name="RemoveAccount" Content="Remove" Style="{StaticResource ButtonStyle}" Width="50"/>
80 <GroupBox Header="Account" Padding="5" Margin="5" Height="231" HorizontalAlignment="Stretch" VerticalAlignment="Top" Grid.Column="1">
82 <Grid.ColumnDefinitions>
83 <ColumnDefinition Width="Auto"/>
84 <ColumnDefinition Width="91*"/>
85 </Grid.ColumnDefinitions>
87 <RowDefinition Height="Auto"/>
88 <RowDefinition Height="Auto"/>
89 <RowDefinition Height="Auto"/>
90 <RowDefinition Height="Auto"/>
91 <RowDefinition Height="Auto"/>
92 <RowDefinition Height="Auto"/>
94 </Grid.RowDefinitions>
95 <Label Content="Account" Grid.Column="0" Grid.Row="0" Margin="0,5" HorizontalAlignment="Left"/>
96 <TextBox Name="CurrentAccount_AccountName" Grid.Column="1" Grid.Row="0" Margin="5"/>
97 <Label Content="API Key" Grid.Column="0" Grid.Row="1" Margin="0,5" HorizontalAlignment="Left"/>
98 <TextBox Name="CurrentAccount_ApiKey" Grid.Column="1" Grid.Row="1" Margin="5"/>
99 <Label Content="Folder" Grid.Column="0" Grid.Row="2" Margin="0,5" HorizontalAlignment="Left"/>
100 <Grid Grid.Row="2" Grid.Column="1" >
101 <Grid.ColumnDefinitions>
102 <ColumnDefinition Width="*"/>
103 <ColumnDefinition Width="Auto"/>
104 </Grid.ColumnDefinitions>
105 <TextBox Name="CurrentAccount_RootPath" Margin="5" HorizontalAlignment="Stretch" Grid.Column="0"/>
106 <Button Name="MoveAccountFolder" Content="Move ..." Width="60" Height="30" Grid.Column="1" />
108 <CheckBox Name="CurrentAccount_IsActive" Content="Account is Active" Grid.Column="1" Grid.Row="3" Margin="5"/>
109 <CheckBox Name="CurrentAccount_UsePithos" Content="Use Pithos Extensions" Grid.Column="1" Grid.Row="4" Margin="5"/>
110 <Button Name="SelectiveSyncFolders" Content="Selective Sync" Width="Auto" HorizontalAlignment="Left" Style="{StaticResource ButtonStyle}" Grid.Column="1" Grid.Row="5"/>
118 <TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
121 <Image Source="/Pithos.Client.WPF;component/Images/Bandwidth.png" Stretch="Uniform" Height="32"/>
122 <TextBlock Text="Bandwidth"/>
126 <GroupBox Header="Download Rate" Height="100" Margin="10,5" VerticalAlignment="Top">
129 <GroupBox Header="Upload Rate" Height="100" Margin="10,5" VerticalAlignment="Top">
134 <TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
137 <Image Source="/Pithos.Client.WPF;component/Images/Network.png" Stretch="Uniform" Height="32"/>
138 <TextBlock Text="Proxy"/>
141 <GroupBox Header="Proxy Settings" Height="275" Margin="10,5" VerticalAlignment="Top" Width="396">
143 <RadioButton Name="Settings_UseDefaultProxy" Content="Use System Defaults" Margin="5,6,5,0" Height="16" VerticalAlignment="Top"/>
144 <RadioButton Name="Settings_UseManualProxy" Content="Manual" Margin="5,28,5,0" Height="16" VerticalAlignment="Top"/>
145 <Label Content="Server" Height="28" HorizontalAlignment="Left" Margin="5,47,0,0" Name="label2" VerticalAlignment="Top" />
146 <TextBox Height="23" HorizontalAlignment="Left" Margin="76,51,0,0" Name="Settings_ProxyServer" VerticalAlignment="Top" Width="162" IsEnabled="{Binding ElementName=Settings_UseManualProxy, Path=IsChecked}"/>
147 <TextBlock Height="23" HorizontalAlignment="Left" Margin="244,51,0,0" Name="textBlock1" Text=":" VerticalAlignment="Top" />
148 <TextBox Height="23" HorizontalAlignment="Left" Margin="254,51,0,0" Name="Settings_ProxyPort" VerticalAlignment="Top" Width="65" IsEnabled="{Binding ElementName=Settings_UseManualProxy, Path=IsChecked}"/>
150 <GroupBox Height="109" HorizontalAlignment="Left" Margin="5,80,0,0" Name="groupBox2" VerticalAlignment="Top" Width="373" IsEnabled="{Binding ElementName=Settings_UseManualProxy, Path=IsChecked}">
152 <CheckBox Content="Proxy requires authentication" Height="16" VerticalAlignment="Top" Name="Settings_ProxyAuthentication" />
155 <Label Content="Username" Height="28" HorizontalAlignment="Left" Margin="0,6,0,0" Name="label3" VerticalAlignment="Top" />
156 <Label Content="Password" Height="28" HorizontalAlignment="Left" Margin="0,32,0,0" Name="label4" VerticalAlignment="Top" />
157 <TextBox Height="23" HorizontalAlignment="Left" Margin="65,6,0,0" Name="Settings_ProxyUsername" VerticalAlignment="Top" Width="157" IsEnabled="{Binding IsChecked,ElementName=Settings_ProxyAuthentication}"/>
158 <TextBox Height="23" HorizontalAlignment="Left" Margin="65,37,0,0" Name="Settings_ProxyPassword" VerticalAlignment="Top" Width="157" IsEnabled="{Binding IsChecked,ElementName=Settings_ProxyAuthentication}"/>
164 <TabItem VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch">
167 <Image Source="/Pithos.Client.WPF;component/Images/Advanced.png" Stretch="Uniform" Height="32"/>
168 <TextBlock Text="Advanced"/>
172 <CheckBox Content="Activate Shell Extensions" Height="16" HorizontalAlignment="Left" Margin="5" Name="ExtensionsActivated" VerticalAlignment="Top" />
173 <Button Content="Refresh Overlays" Name="RefreshOverlays" HorizontalAlignment="Left" Margin="5" Style="{StaticResource ButtonStyle}" Width="Auto" />
178 <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right">
179 <Button Name="SaveChanges" Content="OK" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/>
180 <Button Name="RejectChanges" Content="Cancel" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/>
181 <Button Name="ApplyChanges" Content="Apply" Style="{StaticResource ButtonStyle}" />