blob: 1280b76f8d6fe980f93474fad0dd62100a2f887d (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
<mahapps:MetroWindow x:Class="Tango.MobileEM.UI.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:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
xmlns:controls="clr-namespace:Tango.SharedUI.Controls;assembly=Tango.SharedUI"
xmlns:views="clr-namespace:Tango.MobileEM.UI.Views"
xmlns:fa="http://schemas.fontawesome.io/icons/"
xmlns:local="clr-namespace:Tango.MobileEM.UI"
mc:Ignorable="d"
Title="Tango Machine Emulator" Height="668" Width="416" TitleCaps="False" BorderBrush="Gray" BorderThickness="1" WindowStartupLocation="CenterScreen" Background="#202020" Foreground="Gainsboro" DataContext="{StaticResource MainWindowVM}">
<Grid>
<Grid>
<Image Source="Images/phone.png" RenderOptions.BitmapScalingMode="Fant" Stretch="Fill"></Image>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="52*"/>
<ColumnDefinition Width="237*"/>
<ColumnDefinition Width="55*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="81*"/>
<RowDefinition Height="379*"/>
<RowDefinition Height="65*"/>
</Grid.RowDefinitions>
<Grid Grid.Column="1" Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="40"/>
</Grid.RowDefinitions>
<controls:MultiTransitionControl x:Name="TransitionControl" AlwaysFade="True" TransitionType="Zoom" AnimationTime="500">
<controls:MultiTransitionControl.Controls>
<ContentControl Tag="MainView">
<views:MainView DataContext="{StaticResource MainViewVM}"></views:MainView>
</ContentControl>
<ContentControl Tag="StubsView">
<views:StubsView DataContext="{StaticResource StubsViewVM}"></views:StubsView>
</ContentControl>
<ContentControl Tag="StubView">
<views:StubView></views:StubView>
</ContentControl>
</controls:MultiTransitionControl.Controls>
</controls:MultiTransitionControl>
<Grid Grid.Row="1" Background="#151515">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Button Margin="5" Style="{StaticResource AccentedSquareButtonStyle}" mahapps:ButtonHelper.PreserveTextCase="True" BorderThickness="0" Command="{Binding BackCommand}">
<StackPanel Orientation="Horizontal">
<fa:ImageAwesome Icon="ArrowLeft" Width="16"></fa:ImageAwesome>
</StackPanel>
</Button>
<UniformGrid Columns="2" Grid.Column="1">
<Button Margin="5" Style="{StaticResource AccentedSquareButtonStyle}" mahapps:ButtonHelper.PreserveTextCase="True" BorderThickness="0" Command="{Binding Emulator.StopCommand}">
<StackPanel Orientation="Horizontal">
<fa:ImageAwesome Icon="Unlink" Width="16"></fa:ImageAwesome>
<TextBlock VerticalAlignment="Center" Margin="5 0 10 0">Disconnect</TextBlock>
</StackPanel>
</Button>
<Button Margin="5 5 0 5" Style="{StaticResource AccentedSquareButtonStyle}" mahapps:ButtonHelper.PreserveTextCase="True" BorderThickness="0" Command="{Binding Emulator.StartCommand}">
<StackPanel Orientation="Horizontal">
<fa:ImageAwesome Icon="Link" Width="16"></fa:ImageAwesome>
<TextBlock VerticalAlignment="Center" Margin="5 0 10 0">Connect</TextBlock>
</StackPanel>
</Button>
</UniformGrid>
</Grid>
</Grid>
</Grid>
</Grid>
</Grid>
</mahapps:MetroWindow>
|