blob: bf6c187f829453372f8dbdf75115f6a792c7879f (
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
|
<UserControl x:Class="Tango.FSE.PPCConsole.Views.ConsoleView"
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:global="clr-namespace:Tango.FSE.PPCConsole"
xmlns:vm="clr-namespace:Tango.FSE.PPCConsole.ViewModels"
xmlns:local="clr-namespace:Tango.FSE.PPCConsole.Views"
xmlns:console="clr-namespace:Tango.Console;assembly=Tango.Console"
xmlns:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:material="http://materialdesigninxaml.net/winfx/xaml/themes"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800" d:DataContext="{d:DesignInstance Type=vm:ConsoleViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.ConsoleViewVM}">
<Grid IsEnabled="{Binding MachineProvider.IsConnected}">
<Grid IsEnabled="{Binding MachineProvider.IsPPCAvailable}">
<Border Background="{StaticResource FSE_PrimaryBackgroundDarkBrush}" BorderBrush="{StaticResource FSE_BorderBrush}" BorderThickness="1" CornerRadius="5">
<console:ConsoleControl Background="{StaticResource FSE_PrimaryBackgroundDarkBrush}" Margin="10" BorderBrush="{StaticResource FSE_BorderBrush}" SuggestionsBackground="{StaticResource FSE_PrimaryBackgroundBrush}" SuggestionsBorderBrush="{StaticResource FSE_BorderBrush}" SuggestionsForeground="Silver" DataContext="{Binding ConsoleVM}">
<console:ConsoleControl.BusyTemplate>
<DataTemplate>
<ProgressBar Style="{StaticResource MaterialDesignCircularProgressBar}" IsIndeterminate="True" Width="16" Height="16" />
</DataTemplate>
</console:ConsoleControl.BusyTemplate>
</console:ConsoleControl>
</Border>
<Border TextElement.FontSize="{StaticResource FSE_SmallFontSize}" Opacity="0.8" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="20 20 40 20" Padding="20 10" Background="{StaticResource FSE_PrimaryBackgroundMidBrush}" CornerRadius="5">
<StackPanel>
<CheckBox>Run as Administrator</CheckBox>
<mahapps:NumericUpDown FontSize="{StaticResource FSE_SmallFontSize}" Margin="0 5 0 0" Minimum="1" Maximum="300" Value="{Binding Timeout}" HasDecimals="False" material:HintAssist.Hint="Timeout" material:HintAssist.IsFloating="True"></mahapps:NumericUpDown>
</StackPanel>
</Border>
</Grid>
</Grid>
</UserControl>
|