blob: 26fca90937a47b98648224a04e2b2b5e1c0b82fd (
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
|
<UserControl x:Class="Tango.FSE.UI.Dialogs.MachineConnectionLostView"
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"
xmlns:controls="clr-namespace:Tango.FSE.Common.Controls;assembly=Tango.FSE.Common"
mc:Ignorable="d"
Height="300" Width="700" d:DataContext="{d:DesignInstance Type=local:MachineConnectionLostViewVM, IsDesignTimeCreatable=False}" Background="{StaticResource FSE_PrimaryBackgroundLightBrush}" Foreground="{StaticResource FSE_PrimaryForegroundBrush}">
<Grid>
<DockPanel Margin="10">
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Margin="10">
<Grid>
<controls:MachineConnectionIcon ExternalBridgeClient="{Binding Machine}" Height="60" Margin="-10 0 0 0">
<controls:MachineConnectionIcon.Effect>
<BlurEffect Radius="5" />
</controls:MachineConnectionIcon.Effect>
</controls:MachineConnectionIcon>
<Canvas>
<material:PackIcon Kind="Exclamation" Foreground="{StaticResource FSE_ErrorBrush}" Width="45" Height="45" Margin="-5 13 0 0" />
</Canvas>
</Grid>
<TextBlock FontWeight="SemiBold" VerticalAlignment="Center" Margin="10 0 0 0" FontSize="{StaticResource FSE_MessageBoxTitleFontSize}">
<Run>Connection Lost</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">
The connection with the machine had been lost due to the following reason
</TextBlock>
<Rectangle Margin="0 3 0 0" HorizontalAlignment="Left" Width="405" Stroke="{StaticResource FSE_BorderBrush}" StrokeThickness="1" />
<TextBlock Foreground="{StaticResource FSE_GrayBrush}" TextWrapping="Wrap" Width="500" HorizontalAlignment="Left" Margin="0 10 0 0" Text="{Binding Error,TargetNullValue='Unspecified',FallbackValue='Unspecified'}"></TextBlock>
</StackPanel>
</DockPanel>
<TextBlock Margin="30 0 0 -45" HorizontalAlignment="Left" VerticalAlignment="Bottom" Visibility="{Binding IsAutoReconnect,Converter={StaticResource BooleanToVisibilityConverter}}">
<Run>Trying to reconnect in</Run>
<Run Foreground="{StaticResource FSE_RedBrush}" Text="{Binding RemainingSeconds}"></Run>
<Run>seconds...</Run>
</TextBlock>
</Grid>
</UserControl>
|