aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.BootScreen/MainWindow.xaml
blob: a199d69c530bdddfdf4e4258503a28b417d4e366 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<Window x:Class="Tango.PPC.BootScreen.MainWindow"
        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:local="clr-namespace:Tango.PPC.BootScreen"
        mc:Ignorable="d"
        Title="MainWindow" Height="1280" Width="800" Foreground="Gainsboro" ShowInTaskbar="False" WindowStyle="None" ResizeMode="CanResize" WindowStartupLocation="CenterScreen" WindowState="Maximized" Background="Black">
    <Grid>
        <StackPanel Margin="40" VerticalAlignment="Center">
            <Image Source="/machine-trans.png" Height="300" RenderOptions.BitmapScalingMode="Fant" />
            <TextBlock HorizontalAlignment="Center" FontSize="25" Margin="0 40 0 0">Configuring operation system settings, please wait...</TextBlock>
        </StackPanel>

        <ProgressBar VerticalAlignment="Bottom" IsIndeterminate="True" Height="15" Foreground="Gainsboro" Background="#383838" BorderThickness="0" />
    </Grid>
</Window>
pan> using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using Tango.PPC.UI.ViewModels; using Tango.PPC.UI.ViewsContracts; namespace Tango.PPC.UI.Views { /// <summary> /// Interaction logic for UpdateView.xaml /// </summary> public partial class MachineUpdateView : UserControl, IMachineUpdateView { public MachineUpdateView() { InitializeComponent(); Instance = this; } public static MachineUpdateView Instance { get; internal set; } public Task NavigateTo(MachineUpdateViewVM.MachineUpdateView view) { TaskCompletionSource<object> source = new TaskCompletionSource<object>(); navigationControl.NavigateTo(view.ToString(), () => { if (!source.Task.IsCompleted) { source.SetResult(new object()); } }); return source.Task; } } }