Statistics
| Branch: | Revision:

root / trunk / Pithos.Client.WPF / Preferences / ProxyAccountView.xaml @ 025046f1

History | View | Annotate | Download (4.8 kB)

1
<Window x:Class="Pithos.Client.WPF.Preferences.ProxyAccountView"
2
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
        xmlns:Converters="clr-namespace:Pithos.Client.WPF.Converters" Title="ProxyAccountView" Height="300" Width="400" Topmost="True">
5
    <Window.Resources>
6
        <ResourceDictionary>
7
            <ResourceDictionary.MergedDictionaries>
8
                <ResourceDictionary Source="..\PithosStyles.xaml" />
9
            </ResourceDictionary.MergedDictionaries>
10
            <Converters:NullToVisibilityConverter x:Key="NullToVisible" />
11
        </ResourceDictionary>
12
    </Window.Resources>
13
    <Grid>
14
        <Grid.RowDefinitions>
15
            <RowDefinition Height="Auto"/>
16
            <RowDefinition Height="Auto"/>
17
            <RowDefinition Height="Auto"/>
18
            <RowDefinition/>
19
            <RowDefinition Height="Auto"/>
20
        </Grid.RowDefinitions>
21
        <Grid.ColumnDefinitions>
22
            <ColumnDefinition Width="Auto"/>
23
            <ColumnDefinition />
24
        </Grid.ColumnDefinitions>
25
        <RadioButton Name="Settings_UseDefaultProxy" Content="Use System Defaults" Margin="5,6,5,0" Height="16" VerticalAlignment="Top"/>
26
        <RadioButton Name="Settings_UseManualProxy" Content="Manual" Margin="5,28,5,0" Height="16" VerticalAlignment="Top"/>
27
        <Label Content="Server" Height="28" HorizontalAlignment="Left" Margin="5,47,0,0" Name="label2" VerticalAlignment="Top" />
28
        <TextBox Height="23" HorizontalAlignment="Left" Margin="76,51,0,0" Name="Settings_ProxyServer" VerticalAlignment="Top" Width="162" IsEnabled="{Binding ElementName=Settings_UseManualProxy, Path=IsChecked}"/>
29
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="244,51,0,0" Name="textBlock1" Text=":" VerticalAlignment="Top" />
30
        <TextBox Height="23" HorizontalAlignment="Left" Margin="254,51,0,0" Name="Settings_ProxyPort" VerticalAlignment="Top" Width="65" IsEnabled="{Binding ElementName=Settings_UseManualProxy, Path=IsChecked}"/>
31

    
32
        <GroupBox Height="109" HorizontalAlignment="Left" Margin="5,80,0,0" Name="groupBox2" VerticalAlignment="Top" Width="373" IsEnabled="{Binding ElementName=Settings_UseManualProxy, Path=IsChecked}">
33
            <GroupBox.Header>
34
                <CheckBox Content="Proxy requires authentication" Height="16" VerticalAlignment="Top" Name="Settings_ProxyAuthentication" />
35
            </GroupBox.Header>
36
            <Grid >
37
                <Grid.RowDefinitions>
38
                    <RowDefinition/>
39
                    <RowDefinition/>
40
                    <RowDefinition/>
41
                </Grid.RowDefinitions>
42
                <Grid.ColumnDefinitions>
43
                    <ColumnDefinition/>
44
                    <ColumnDefinition/>
45
                </Grid.ColumnDefinitions>
46
                <Label Content="Username" Height="28" HorizontalAlignment="Left" Grid.Row="0" Grid.Column="0" VerticalAlignment="Top" />
47
                <Label Content="Password" Height="28" HorizontalAlignment="Left" Grid.Row="1" Grid.Column="0" VerticalAlignment="Top" />
48
                <Label Content="Domain" Height="28" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="0"  VerticalAlignment="Top" />
49
                <TextBox Height="23" HorizontalAlignment="Left" Grid.Row="0" Grid.Column="1" Name="Settings_ProxyUsername" VerticalAlignment="Top" Width="157" IsEnabled="{Binding IsChecked,ElementName=Settings_ProxyAuthentication}"/>
50
                <TextBox Height="23" HorizontalAlignment="Left" Grid.Row="1" Grid.Column="1" Name="Settings_ProxyPassword" VerticalAlignment="Top" Width="157" IsEnabled="{Binding IsChecked,ElementName=Settings_ProxyAuthentication}"/>
51
                <TextBox Height="23" HorizontalAlignment="Left" Grid.Row="2" Grid.Column="1" Name="Settings_ProxyDomain" VerticalAlignment="Top" Width="157" IsEnabled="{Binding IsChecked,ElementName=Settings_ProxyAuthentication}"/>
52
            </Grid>
53
        </GroupBox>
54
    
55

    
56
<!--
57
    <TextBlock Text="UserName" Grid.Row="0" Grid.Column="0" Margin="5"/>
58
            <TextBox x:Name="UserName" Grid.Row="0" Grid.Column="1" Margin="5"/>
59
            <TextBlock Text="Password" Grid.Row="1" Grid.Column="0" Margin="5"/>
60
            <TextBox x:Name="Password" Grid.Row="1" Grid.Column="1" Margin="5"/>
61
            <TextBlock Text="Domain" Grid.Row="2" Grid.Column="0" Margin="5"/>
62
            <TextBox x:Name="Domain" Grid.Row="2" Grid.Column="1" Margin="5"/>
63
-->
64
        <StackPanel Orientation="Horizontal" Grid.Row="3" Grid.ColumnSpan="2" HorizontalAlignment="Right" VerticalAlignment="Bottom">
65
            <Button Name="SaveChanges" Content="OK" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/>
66
            <Button Name="RejectChanges" Content="Cancel" Margin="5,5,10,5" Style="{StaticResource ButtonStyle}"/>
67
        </StackPanel>
68
    </Grid>
69
</Window>