aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.UI/Dialogs/MachineWaitForConnectionView.xaml
blob: 946e2bf0dd5246885e11e4376c9e6b6d704dcb21 (plain)
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
<UserControl x:Class="Tango.FSE.UI.Dialogs.MachineWaitForConnectionView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:material="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:local="clr-namespace:Tango.FSE.UI.Dialogs"
             mc:Ignorable="d" 
             Height="300" Width="700" d:DataContext="{d:DesignInstance Type=local:MachineWaitForConnectionViewVM, IsDesignTimeCreatable=False}" Background="{StaticResource FSE_PrimaryBackgroundLightBrush}" Foreground="{StaticResource FSE_PrimaryForegroundBrush}">
    <Grid>
        <DockPanel Margin="10">
            <StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Margin="10">
                <Grid>
                    <ContentControl Height="60" Margin="-10 0 0 0" Style="{StaticResource FSE_WifiMachineIcon}">
                        <ContentControl.Effect>
                            <BlurEffect Radius="5" />
                        </ContentControl.Effect>
                    </ContentControl>
                    <Canvas>
                        <ProgressBar Style="{StaticResource FSE_CircularProgressBar}" Foreground="{StaticResource FSE_GrayBrush}" Opacity="0.5" Width="24" Height="24" Margin="5 24 0 0" />
                    </Canvas>
                </Grid>
                <TextBlock FontWeight="SemiBold" VerticalAlignment="Center" Margin="10 0 0 0" FontSize="{StaticResource FSE_MessageBoxTitleFontSize}">
                    <Run>Waiting for remote machine</Run>
                    <Run>'</Run><Run FontWeight="Normal" Text="{Binding Machine.SerialNumber}"></Run><Run>'</Run>
                    <Run FontSize="{StaticResource FSE_SmallerFontSize}" Foreground="{StaticResource FSE_GrayBrush}" Text="{Binding Machine.Machine.Name}"></Run>
                </TextBlock>
            </StackPanel>

            <StackPanel DockPanel.Dock="Top" Margin="0 10 0 0">
                <TextBlock TextWrapping="Wrap" LineHeight="24">
                    <Run Text="{Binding Message}"></Run>
                    <LineBreak/>
                    <Run>This dialog will close as soon as the connection reestablishes.</Run>
                </TextBlock>
                <Rectangle Margin="0 3 0 0" HorizontalAlignment="Left" Width="540" Stroke="{StaticResource FSE_BorderBrush}" StrokeThickness="1" />
            </StackPanel>
        </DockPanel>

        <TextBlock Margin="30 0 0 -45" HorizontalAlignment="Left" VerticalAlignment="Bottom" Visibility="{Binding BlockCancel,Converter={StaticResource BooleanToVisibilityInverseConverter}}">
            <Run>Reestablishing connection...</Run>
            <Run Foreground="{StaticResource FSE_GrayBrush}">(</Run><Run Foreground="{StaticResource FSE_GrayBrush}" Text="{Binding RemainingSeconds}"></Run><Run Foreground="{StaticResource FSE_GrayBrush}">)</Run>
        </TextBlock>
        <DockPanel Margin="30 0 0 -45" HorizontalAlignment="Left" VerticalAlignment="Bottom" Visibility="{Binding BlockCancel,Converter={StaticResource BooleanToVisibilityConverter}}">
            <ProgressBar Foreground="{StaticResource FSE_PrimaryForegroundBrush}" IsIndeterminate="True" Style="{StaticResource FSE_CircularProgressBar}" Width="14" Height="14" />
            <TextBlock Margin="10 0 0 0" VerticalAlignment="Center">Please wait...</TextBlock>
        </DockPanel>
    </Grid>
</UserControl>