This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
MainPage.xaml
77 lines (75 loc) · 3.27 KB
/
MainPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<Page
x:Class="UWPPackageInstaller.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:UWPPackageInstaller"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="*" />
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal"
Grid.Row="0">
<Image x:Name="pkgi" Height="47" Width="47" Margin="12,10" Source="/Assets/256x256.png" Stretch="UniformToFill"/>
<FontIcon FontFamily="Segoe MDL2 Assets"
Glyph=""
FontSize="36"
Foreground="{ThemeResource SystemControlForegroundAccentBrush}" Visibility="Collapsed"/>
<TextBlock x:Name="packageNameTextBlock"
Text="packageName"
FontSize="12"
TextWrapping="Wrap"
TextTrimming="CharacterEllipsis"
FontWeight="SemiBold" Height="19"/>
</StackPanel>
<StackPanel Grid.Row="1">
<TextBlock Name="permissionTextBlock"
Text="Do you want to install this package?"
Margin="12,20"
FontSize="20"
TextWrapping="Wrap"/>
<ProgressBar Name="installProgressBar"
Height="5"
Margin="12,0"
Visibility="Collapsed"/>
<TextBlock Name="installValueTextBlock"
Text="0%"
Margin="12,10"
Visibility="Collapsed"/>
<Button Name="loadFileButton"
Content="Load File"
Margin="12,10"
Click="loadFileButton_Click"/>
<Button Name="loadDependenciesButton"
Content="Load Dependencies"
Margin="12,10"
Click="loadDependenciesButton_Click" />
<TextBlock Name="resultTextBlock"
TextWrapping="Wrap"
Margin="12,0"/>
</StackPanel>
<StackPanel Grid.Row="2"
HorizontalAlignment="Right"
Orientation="Horizontal"
Margin="16">
<Button Style="{ThemeResource TextBlockButtonStyle}"
Content="Cancel"
FontSize="20"
Padding="0"
Name="cancelButton"
Click="cancelButton_Click"/>
<Button Style="{ThemeResource TextBlockButtonStyle}"
Content="Install"
FontWeight="SemiBold"
FontSize="20"
Padding="0"
Name="installButton"
Click="installButton_Click"
Margin="16,0,0,0"/>
</StackPanel>
</Grid>
</Page>