|
4 | 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 | 5 | xmlns:loc="clr-namespace:SS14.Launcher.Localization" |
6 | 6 | xmlns:v="clr-namespace:SS14.Launcher.Views" |
7 | | - mc:Ignorable="d" d:DesignWidth="600" d:DesignHeight="150" |
8 | | - MinWidth="600" MinHeight="150" |
9 | | - Width="600" Height="150" |
| 7 | + mc:Ignorable="d" d:DesignWidth="600" d:DesignHeight="200" |
| 8 | + MinWidth="600" MinHeight="200" |
| 9 | + Width="600" Height="200" |
10 | 10 | x:Class="SS14.Launcher.Views.SelectAccountDialog" |
11 | 11 | Icon="{DynamicResource WindowIcon}" |
12 | 12 | Title="{loc:Loc select-account-dialog-title}" |
|
16 | 16 | <v:ScaledControl> |
17 | 17 | <DockPanel> |
18 | 18 | <TextBlock DockPanel.Dock="Top" Classes="NanoHeading" Text="{loc:Loc select-account-dialog-header}" /> |
19 | | - <TextBlock DockPanel.Dock="Top" Text="{loc:Loc select-account-dialog-description}" TextWrapping="Wrap" /> |
20 | | - <ItemsControl DockPanel.Dock="Top" ItemsSource="{Binding Accounts, RelativeSource={RelativeSource AncestorType=Window}}" IsVisible="{Binding !Error, RelativeSource={RelativeSource AncestorType=Window}}"> |
21 | | - <ItemsControl.ItemTemplate> |
22 | | - <DataTemplate> |
23 | | - <Button Content="{Binding LoginInfo.DisplayName}" |
24 | | - Command="{Binding Confirm, RelativeSource={RelativeSource AncestorType=Window}}" |
25 | | - CommandParameter="{Binding}" /> |
26 | | - </DataTemplate> |
27 | | - </ItemsControl.ItemTemplate> |
28 | | - </ItemsControl> |
29 | | - <Button DockPanel.Dock="Top" Content="{loc:Loc select-account-dialog-error}" |
30 | | - Command="{Binding Confirm, RelativeSource={RelativeSource AncestorType=Window}}" |
31 | | - CommandParameter="{Binding SelectedAccount, RelativeSource={RelativeSource AncestorType=Window}}" |
32 | | - IsVisible="{Binding Error, RelativeSource={RelativeSource AncestorType=Window}}" /> |
| 19 | + <TextBlock DockPanel.Dock="Top" Text="{Binding Description, RelativeSource={RelativeSource AncestorType=Window}}" TextWrapping="Wrap" /> |
| 20 | + <ScrollViewer DockPanel.Dock="Bottom" Margin="0,8,0,0" HorizontalScrollBarVisibility="Disabled"> |
| 21 | + <StackPanel> |
| 22 | + <ItemsControl ItemsSource="{Binding Accounts, RelativeSource={RelativeSource AncestorType=Window}}" IsVisible="{Binding !Error, RelativeSource={RelativeSource AncestorType=Window}}"> |
| 23 | + <ItemsControl.ItemTemplate> |
| 24 | + <DataTemplate> |
| 25 | + <Button Content="{Binding LoginInfo.DisplayName}" |
| 26 | + Command="{Binding Confirm, RelativeSource={RelativeSource AncestorType=Window}}" |
| 27 | + CommandParameter="{Binding}" /> |
| 28 | + </DataTemplate> |
| 29 | + </ItemsControl.ItemTemplate> |
| 30 | + </ItemsControl> |
| 31 | + <Button Command="{Binding Confirm, RelativeSource={RelativeSource AncestorType=Window}}" |
| 32 | + CommandParameter="{Binding SelectedAccount, RelativeSource={RelativeSource AncestorType=Window}}" |
| 33 | + IsVisible="{Binding Error, RelativeSource={RelativeSource AncestorType=Window}}"> |
| 34 | + <TextBlock Text="{loc:Loc select-account-dialog-error}" TextWrapping="Wrap" /> |
| 35 | + </Button> |
| 36 | + <Button Content="{loc:Loc account-drop-down-add-account}" Command="{Binding AddAccount, RelativeSource={RelativeSource AncestorType=Window}}" /> |
| 37 | + </StackPanel> |
| 38 | + </ScrollViewer> |
33 | 39 | </DockPanel> |
34 | 40 | </v:ScaledControl> |
35 | 41 | </Window> |
0 commit comments