Update.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
<Window x:Class="TNRTC.PowerShell.Modules.M365NetworkTestingTool.Update"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:sys="clr-namespace:System;assembly=mscorlib"
        xmlns:local="clr-namespace:TNRTC.PowerShell.Modules.M365NetworkTestingTool"
        mc:Ignorable="d"
        Title="Software Update" Height="300" Width="600" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow">
    <Window.Resources>
        <Style x:Key="TBH1" TargetType="TextBlock">
            <Setter Property="Margin" Value="3,5"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="FontFamily" Value="Segoe UI Light"/>
            <Setter Property="FontSize" Value="30"/>
        </Style>
        <Style x:Key="TBH3" TargetType="TextBlock">
            <Setter Property="Margin" Value="3,5"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="FontFamily" Value="Segoe UI Light"/>
            <Setter Property="FontSize" Value="20"/>
        </Style>
    </Window.Resources>
    <StackPanel>
        <Grid Height="270">
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="10"/>
            </Grid.RowDefinitions>
            <StackPanel Margin="0,30" Grid.Row="0" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock Style="{StaticResource TBH1}" Text="A new application update is available!"/>
                <Image x:Name="imgDL" Source="assets/download.png" Width="100" Cursor="Hand" Height="60"/>
                <TextBlock x:Name="txtUpdateInstructions" Style="{StaticResource TBH3}" Text="Please wait..."/>
                <Button x:Name="btnCloseUpdate" Padding="5,2" Content="Close" Height="24" Width="50" Margin="0,5,0,0"/>
            </StackPanel>
 
 
 
        </Grid>
    </StackPanel>
</Window>