Revision 99882980 trunk/Pithos.Client.WPF/Preferences/PreferencesView.xaml
b/trunk/Pithos.Client.WPF/Preferences/PreferencesView.xaml | ||
---|---|---|
83 | 83 |
<RowDefinition Height="*"/> |
84 | 84 |
<RowDefinition Height="Auto"/> |
85 | 85 |
</Grid.RowDefinitions> |
86 |
<ListBox Name="Accounts" Padding="2" Margin="2,2,2,0" Grid.Row="0" VerticalAlignment="Stretch" ItemsSource="{Binding Accounts,Mode=OneWay}" SelectedItem="{Binding CurrentAccount,Mode=TwoWay}" >
|
|
86 |
<ListBox Name="Accounts" Padding="2" Margin="2,2,-18,0" Grid.Row="0" VerticalAlignment="Stretch" ItemsSource="{Binding Accounts,Mode=OneWay}" SelectedItem="{Binding CurrentAccount,Mode=TwoWay}" >
|
|
87 | 87 |
<ListBox.ItemTemplate> |
88 | 88 |
<DataTemplate> |
89 | 89 |
<StackPanel Orientation="Horizontal"> |
... | ... | |
96 | 96 |
</DataTemplate> |
97 | 97 |
</ListBox.ItemTemplate> |
98 | 98 |
</ListBox> |
99 |
<Grid Grid.Row="1"> |
|
99 |
<Grid Grid.Row="1" Margin="0,0,-18,0">
|
|
100 | 100 |
<!-- <Grid.ColumnDefinitions> |
101 | 101 |
<ColumnDefinition Width="50*"/> |
102 | 102 |
<ColumnDefinition Width="50*"/> |
103 | 103 |
</Grid.ColumnDefinitions> --> |
104 |
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
|
104 |
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,-17,0" Width="247">
|
|
105 | 105 |
<Button Name="AddAccount" Grid.Column="0" Content="Add" ToolTip="Enter account details manually" Margin="5,5,10,5" Height="25" Width="100"/> |
106 | 106 |
<Button Name="RemoveAccount" Grid.Column="1" Content="Remove" Margin="5,5,10,5" Height="25" Width="100"/> |
107 | 107 |
</StackPanel> |
108 | 108 |
</Grid> |
109 | 109 |
</Grid> |
110 |
<GroupBox Header="Account" Padding="2" Margin="2" Height="231" HorizontalAlignment="Stretch" VerticalAlignment="Top" Grid.Column="1" Visibility="{Binding Path=CurrentAccount, Converter={StaticResource NullToVisible},ConverterParameter='Invert'}"
|
|
110 |
<GroupBox Header="Account" Padding="2" Margin="18,2,2,0" Height="231" HorizontalAlignment="Stretch" VerticalAlignment="Top" Grid.Column="1" Visibility="{Binding Path=CurrentAccount, Converter={StaticResource NullToVisible},ConverterParameter='Invert'}"
|
|
111 | 111 |
HorizontalContentAlignment="Center" VerticalContentAlignment="Center"> |
112 | 112 |
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" TextWrapping="Wrap" > |
113 | 113 |
No account is selected. Please select an account or add a new one. |
114 | 114 |
</TextBlock> |
115 | 115 |
</GroupBox> |
116 |
<GroupBox Header="Account" Padding="2" Margin="2,2,2,0" Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Top" Grid.Column="1" Visibility="{Binding Path=CurrentAccount, Converter={StaticResource NullToVisible}}">
|
|
116 |
<GroupBox Header="Account" Padding="2" Margin="18,2,2,0" Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Top" Grid.Column="1" Visibility="{Binding Path=CurrentAccount, Converter={StaticResource NullToVisible}}">
|
|
117 | 117 |
<Grid> |
118 | 118 |
<Grid.ColumnDefinitions> |
119 | 119 |
<ColumnDefinition Width="45"/> |
Also available in: Unified diff