aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/ConnectionLostView.xaml
blob: ba56245920df5f7bbceee15fc3d6f2cd24358f82 (generated by cgit v1.3.1 (git 2.54.0) at 2026-07-17 20:09:01 +0000
.MachineStudio.UI.Views.ConnectionLostView" 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:vm="clr-namespace:Tango.MachineStudio.UI.ViewModels" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:local="clr-namespace:Tango.MachineStudio.UI.Views" mc:Ignorable="d" Width="559" Height="350" Background="{StaticResource Dialog.Background}" d:DataContext="{d:DesignInstance Type=vm:ConnectionLostViewVM, IsDesignTimeCreatable=False}" Foreground="{StaticResource MainWindow.Foreground}"> <Grid> <Grid> <Grid.RowDefinitions> <RowDefinition Height="80"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Grid> <StackPanel Orientation="Horizontal" Margin="10"> <Grid> <Image Source="{StaticResource MachineSmall}" Width="60" RenderOptions.BitmapScalingMode="Fant"></Image> <Ellipse Fill="#FF2626" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="30" Height="30" Margin="0 0 -5 -5"> </Ellipse> <materialDesign:PackIcon Foreground="White" Kind="LanDisconnect" HorizontalAlignment="Right" VerticalAlignment="Bottom" Width="20" Height="20" Margin="0 0 0 0" /> </Grid> <TextBlock Text="Connection Lost" VerticalAlignment="Center" Margin="10 0 0 0" FontSize="20"></TextBlock> </StackPanel> </Grid> <Grid Grid.Row="1" Margin="10 0 10 10"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="50"/> </Grid.RowDefinitions> <Grid> <StackPanel Margin="0 10 0 0" > <TextBlock TextWrapping="Wrap"> <Run>The machine connection has entered an invalid or inactive state and will be regarded as</Run> <LineBreak/> <Run>disconnected.</Run> </TextBlock> <TextBlock Margin="0 20 0 0" FontWeight="SemiBold">Reason:</TextBlock> <TextBlock Foreground="{StaticResource GrayBrush}" Margin="0 2 0 0" Text="{Binding Exception}" Height="75" TextWrapping="Wrap" TextTrimming="CharacterEllipsis"> </TextBlock> </StackPanel> </Grid> <Grid Grid.Row="1"> <TextBlock Visibility="{Binding AutoReconnect,Converter={StaticResource BoolToVisConverter}}" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="{StaticResource GrayBrush}"> <Run>Reconnecting in</Run> <Run Text="{Binding ReconnectinSeconds}" Foreground="{StaticResource RedBrush300}"></Run> <Run>seconds...</Run> </TextBlock> <Button HorizontalAlignment="Right" Width="140" Command="{Binding CloseCommand}">CLOSE</Button> </Grid> </Grid> </Grid> </Grid> </UserControl>