diff --git a/AppInstallerFileBuilder/AppInstallerFileBuilder/Package.appxmanifest b/AppInstallerFileBuilder/AppInstallerFileBuilder/Package.appxmanifest index d0c68cf..5542fd4 100644 --- a/AppInstallerFileBuilder/AppInstallerFileBuilder/Package.appxmanifest +++ b/AppInstallerFileBuilder/AppInstallerFileBuilder/Package.appxmanifest @@ -1,6 +1,6 @@  - + AppInstaller File Builder (Preview) diff --git a/AppInstallerFileBuilder/AppInstallerFileBuilder/Views/MainPackageView.xaml b/AppInstallerFileBuilder/AppInstallerFileBuilder/Views/MainPackageView.xaml index 8f25641..ed90131 100644 --- a/AppInstallerFileBuilder/AppInstallerFileBuilder/Views/MainPackageView.xaml +++ b/AppInstallerFileBuilder/AppInstallerFileBuilder/Views/MainPackageView.xaml @@ -9,8 +9,8 @@ mc:Ignorable="d"> - - + + @@ -51,7 +51,7 @@ Width="453" Margin="0,0,15,0" /> - @@ -61,7 +61,7 @@ + Style="{StaticResource SubtitleTextBlockStyle}" FontSize="15" Margin="5" VerticalAlignment="Center" Width="185"> @@ -73,14 +73,14 @@ PlaceholderText="Package Name" HorizontalAlignment="Left" Width="400" - Margin="141,0,0,0" + Margin="10,0,0,0" /> + Style="{StaticResource SubtitleTextBlockStyle}" Margin="5" FontSize="15" VerticalAlignment="Center" Windows10FallCreatorsUpdate:HorizontalTextAlignment="Left" Width="185"> @@ -93,14 +93,14 @@ ToolTipService.ToolTip="e.g. 1.0.0.0" HorizontalAlignment="Left" Width="400" - Margin="132,0,0,0" + Margin="10,0,0,0" /> + Style="{StaticResource SubtitleTextBlockStyle}" FontSize="15" Margin="5" VerticalAlignment="Center" Width="185"> @@ -112,7 +112,7 @@ PlaceholderText="Publisher" HorizontalAlignment="Left" Width="400" - Margin="121,0,0,0" + Margin="10,0,0,0" /> @@ -120,7 +120,7 @@ + Style="{StaticResource SubtitleTextBlockStyle}" FontSize="15" Margin="5" VerticalAlignment="Center" Width="185"> + Style="{StaticResource SubtitleTextBlockStyle}" Margin="5" VerticalAlignment="Center" FontSize="15" Width="185"> @@ -149,14 +149,14 @@ PlaceholderText="Processor Architecture" HorizontalAlignment="Left" Width="400" - Margin="8,0,0,0" + Margin="10,0,0,0" /> @@ -169,47 +169,48 @@ PlaceholderText="Enter the package URI" ToolTipService.ToolTip="e.g. C:\Users\JaneDoe\Desktop\MyApp.msix" HorizontalAlignment="Left" - Width="518" - Margin="8,0,0,0" + Width="400" + Margin="10,0,0,0" /> - + - - + + - + Width="185"/> + - - - + - - - + + - - - + + + + + - - - - - - - + + + - - + + + + + + + + - diff --git a/AppInstallerFileBuilder/AppInstallerFileBuilder/Views/MainPackageView.xaml.cs b/AppInstallerFileBuilder/AppInstallerFileBuilder/Views/MainPackageView.xaml.cs index e2857b9..8ad7c5b 100644 --- a/AppInstallerFileBuilder/AppInstallerFileBuilder/Views/MainPackageView.xaml.cs +++ b/AppInstallerFileBuilder/AppInstallerFileBuilder/Views/MainPackageView.xaml.cs @@ -59,6 +59,7 @@ public sealed partial class MainPackageView : Page private StackPanel _1809updateSettingsStackPanel; private int _hoursBetweenUpdates; + private ScrollViewer _scrollViewer; /*************************************************************************** * @@ -79,6 +80,7 @@ public MainPackageView() _uriPathTextBox = (TextBox)this.FindName("Uri_Path_Text_Box"); _processorTypeStackPanel = (StackPanel)this.FindName("Processor_Type_Stack_Panel"); _resourceIdStackPanel = (StackPanel)this.FindName("Resource_Id_Stack_Panel"); + _scrollViewer = (ScrollViewer)this.FindName("Main_ScrollViewer"); PackageInfoButton.Click += new RoutedEventHandler(PackageInfoButton_Click); @@ -312,6 +314,7 @@ private void CompatComboBox_SelectionChanged(object sender, SelectionChangedEven _1803updateSettingsStackPanel.Visibility = Visibility.Visible; _1709updateSettingsStackPanel.Visibility = Visibility.Visible; App.AppInstallerFileSchemaNamespace = "http://schemas.microsoft.com/appx/appinstaller/2018"; + _scrollViewer.ChangeView(0.0f, _scrollViewer.ScrollableHeight, 1.0f); break; case 1: //1803 and above Debug.WriteLine("1"); @@ -321,6 +324,7 @@ private void CompatComboBox_SelectionChanged(object sender, SelectionChangedEven _showPromptSwitch.IsOn = false; _blockUpdateSwitch.IsOn = false; App.AppInstallerFileSchemaNamespace = "http://schemas.microsoft.com/appx/appinstaller/2017/2"; + _scrollViewer.ChangeView(0.0f, _scrollViewer.ScrollableHeight/2.5, 1.0f); break; case 2: //1709 and above Debug.WriteLine("2"); @@ -369,5 +373,9 @@ private void Auto_Update_Switch_Toggled(object sender, RoutedEventArgs e) } + private void TextBlock_SelectionChanged(object sender, RoutedEventArgs e) + { + + } } }