|
7 | 7 | xmlns:vm="clr-namespace:LuaInstaller.ViewModels" |
8 | 8 | xmlns:converters="clr-namespace:LuaInstaller.Converters" |
9 | 9 | mc:Ignorable="d" |
10 | | - Title="Lua Installer" Height="350" Width="525"> |
| 10 | + Title="Lua Installer" Width="550" Height="450" MinWidth="550" MinHeight="450"> |
11 | 11 | <Window.Resources> |
12 | 12 | <vm:LuaInstallerViewModel x:Key="viewModel"/> |
13 | 13 | <converters:ArchitectureConverter x:Key="archConverter"/> |
|
28 | 28 | </StatusBarItem> |
29 | 29 | </StatusBar> |
30 | 30 |
|
| 31 | + <Expander DockPanel.Dock="Bottom" Margin="20,0" Padding="0,20,0,0"> |
| 32 | + <Expander.Header>Installer information</Expander.Header> |
| 33 | + <Grid> |
| 34 | + <Grid.ColumnDefinitions> |
| 35 | + <ColumnDefinition Width="*"/> |
| 36 | + <ColumnDefinition Width="*"/> |
| 37 | + </Grid.ColumnDefinitions> |
| 38 | + <Grid.RowDefinitions> |
| 39 | + <RowDefinition Height="Auto"/> |
| 40 | + <RowDefinition Height="5"/> |
| 41 | + <RowDefinition Height="Auto"/> |
| 42 | + <RowDefinition Height="5"/> |
| 43 | + </Grid.RowDefinitions> |
| 44 | + |
| 45 | + <Label Grid.Column="0" Grid.Row="0" Content="Version"/> |
| 46 | + <TextBlock Grid.Column="1" Grid.Row="0" Text="{Binding InstallerVersion}" VerticalAlignment="Center" /> |
| 47 | + |
| 48 | + <Label Grid.Column="0" Grid.Row="2" Content="Website"/> |
| 49 | + <TextBox Grid.Column="1" Grid.Row="2" IsReadOnly="True" VerticalContentAlignment="Center" Text="https://github.com/luau-project/LuaInstaller"/> |
| 50 | + </Grid> |
| 51 | + </Expander> |
| 52 | + |
31 | 53 | <Grid IsEnabled="{Binding InstallCommand.NotInstalling, Source={StaticResource viewModel}}" Margin="20,10"> |
32 | 54 | <Grid.ColumnDefinitions> |
33 | 55 | <ColumnDefinition Width="*"/> |
34 | 56 | <ColumnDefinition Width="*"/> |
35 | 57 | </Grid.ColumnDefinitions> |
36 | 58 | <Grid.RowDefinitions> |
37 | | - <RowDefinition Height="*"/> |
| 59 | + <RowDefinition Height="Auto"/> |
38 | 60 | <RowDefinition Height="5"/> |
39 | | - <RowDefinition Height="*"/> |
| 61 | + <RowDefinition Height="Auto"/> |
40 | 62 | <RowDefinition Height="5"/> |
41 | | - <RowDefinition Height="*"/> |
| 63 | + <RowDefinition Height="Auto"/> |
42 | 64 | <RowDefinition Height="5"/> |
43 | | - <RowDefinition Height="*"/> |
| 65 | + <RowDefinition Height="Auto"/> |
44 | 66 | <RowDefinition Height="5"/> |
45 | | - <RowDefinition Height="*"/> |
| 67 | + <RowDefinition Height="Auto"/> |
46 | 68 | <RowDefinition Height="5"/> |
47 | | - <RowDefinition Height="*"/> |
| 69 | + <RowDefinition Height="Auto"/> |
48 | 70 | <RowDefinition Height="5"/> |
49 | | - <RowDefinition Height="*"/> |
| 71 | + <RowDefinition Height="Auto"/> |
50 | 72 | </Grid.RowDefinitions> |
51 | 73 |
|
52 | 74 | <Label Grid.Column="0" Grid.Row="0" Content="Platform"/> |
|
87 | 109 | </DataTemplate> |
88 | 110 | </ComboBox.ItemTemplate> |
89 | 111 | </ComboBox> |
90 | | - |
91 | | - <CheckBox Grid.Column="1" Grid.Row="10" VerticalContentAlignment="Center" Content="Set environment variables" IsChecked="{Binding SetEnvironmentVariables}"/> |
92 | 112 |
|
93 | | - <StackPanel IsEnabled="{Binding SetEnvironmentVariables}" Grid.Column="1" Grid.Row="12" Orientation="Horizontal"> |
| 113 | + <CheckBox Grid.Column="1" Grid.Row="10" VerticalContentAlignment="Center" Content="Set environment variables" IsChecked="{Binding SetEnvironmentVariables}" ToolTipService.InitialShowDelay="200" Margin="0,5,0,0"> |
| 114 | + <CheckBox.ToolTip> |
| 115 | + <TextBlock Text="To set environment variables, you must "Run as Administrator""/> |
| 116 | + </CheckBox.ToolTip> |
| 117 | + </CheckBox> |
| 118 | + |
| 119 | + <StackPanel IsEnabled="{Binding SetEnvironmentVariables}" Grid.Column="1" Grid.Row="12" Orientation="Horizontal" Margin="0,5"> |
94 | 120 | <RadioButton Margin="20,0,10,0" Content="User" IsChecked="{Binding VariableTarget, Converter={StaticResource varTargetConverter}, ConverterParameter=User}"/> |
95 | 121 | <RadioButton Content="Machine" IsChecked="{Binding VariableTarget, Converter={StaticResource varTargetConverter}, ConverterParameter=Machine}"/> |
96 | 122 | </StackPanel> |
97 | | - |
98 | 123 | </Grid> |
99 | 124 |
|
100 | 125 | </DockPanel> |
|
0 commit comments