Browse Source

fixed new tab ui

Veloe 2 years ago
parent
commit
1185966cd2

+ 2 - 2
VeloeMinecraftLauncher/VeloeMinecraftLauncher.csproj

@@ -10,8 +10,8 @@
     <DebugType>embedded</DebugType>
     <StartupObject>VeloeMinecraftLauncher.Program</StartupObject>
     <PlatformTarget>x64</PlatformTarget>
-    <AssemblyVersion>1.2.2.351</AssemblyVersion>
-    <FileVersion>1.2.2.351</FileVersion>
+    <AssemblyVersion>1.3.1.6</AssemblyVersion>
+    <FileVersion>1.3.1.6</FileVersion>
     <Configurations>Debug;Release</Configurations>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

+ 13 - 12
VeloeMinecraftLauncher/Views/VersionsDownloader.axaml

@@ -122,19 +122,21 @@
 					</Grid>
 				</TabItem>
 				<TabItem Header="Manager">
-					<StackPanel>
+					<Grid Margin="10" RowDefinitions="Auto,*,Auto">
 						<ComboBox
-									Items="{Binding DownloadedVersions}"
-									PlaceholderText="Select version"
-									SelectedItem="{Binding DownloadedVersion}"
-									IsEnabled="{Binding IsControlsEnabled}"
-									HorizontalAlignment="Stretch"
-									/>
-						<ScrollViewer Height="340">
+							Items="{Binding DownloadedVersions}"
+							PlaceholderText="Select version"
+							SelectedItem="{Binding DownloadedVersion}"
+							IsEnabled="{Binding IsControlsEnabled}"
+							HorizontalAlignment="Stretch"
+							Grid.Row="0"/>
+
 							<TreeView
 								Items="{Binding DownloadedVersionTree}"
 							    IsEnabled="{Binding IsControlsEnabled}"
-								x:Name="treeView">
+								x:Name="treeView"
+								Margin="0,10,0,0"
+								Grid.Row="1">
 								<TreeView.DataTemplates>
 									<TreeDataTemplate DataType="vm:TreeNode" ItemsSource="{Binding SubNode}">
 										<StackPanel>
@@ -143,8 +145,7 @@
 									</TreeDataTemplate>
 								</TreeView.DataTemplates>
 							</TreeView>
-						</ScrollViewer>
-						<Grid ColumnDefinitions="Auto,*" RowDefinitions="Auto" HorizontalAlignment="Center">
+						<Grid ColumnDefinitions="Auto,*" RowDefinitions="Auto" HorizontalAlignment="Center" Grid.Row="2">
 							<Button
 								Content="Delete"
 								HorizontalAlignment="Center"
@@ -160,7 +161,7 @@
 								Margin="0,10,0,0"
 								Grid.Row="0" Grid.Column="1"/>
 						</Grid>
-					</StackPanel>
+					</Grid>
 				</TabItem>
 			</TabControl>		
 		</DockPanel>