blob: c0fa65b918d35a402ced94bc8613797d2c7b8b23 (
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
|
<UserControl x:Class="Tango.MobileEM.UI.Views.StubView"
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:fa="http://schemas.fontawesome.io/icons/"
xmlns:mahapps="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:editors="clr-namespace:Tango.SharedUI.Editors;assembly=Tango.SharedUI"
xmlns:local="clr-namespace:Tango.MobileEM.UI.Views"
mc:Ignorable="d"
d:DesignHeight="400" d:DesignWidth="300">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="105*"/>
<RowDefinition Height="68*"/>
</Grid.RowDefinitions>
<Grid VerticalAlignment="Top" Background="#151515">
<StackPanel Orientation="Horizontal" Margin="5">
<fa:ImageAwesome Icon="Cogs" Foreground="Red" Width="24" Height="24" VerticalAlignment="Center"></fa:ImageAwesome>
<StackPanel Margin="5 0 0 0" VerticalAlignment="Center">
<TextBlock Margin="2" FontSize="14" Text="{Binding AvailableStub.Name}"></TextBlock>
<TextBlock Margin="2" FontSize="12" Text="{Binding AvailableStub.Description}"></TextBlock>
</StackPanel>
</StackPanel>
</Grid>
<Grid Grid.Row="1" Background="#202020">
<editors:ParameterizedEditor ParameterizedObject="{Binding Stub}" Margin="10" ItemMargin="10" ItemLabelMargin="0 0 0 5" />
</Grid>
<Grid Grid.Row="2">
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="40"/>
</Grid.RowDefinitions>
<Grid Background="Black">
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="40*"/>
</Grid.RowDefinitions>
<TextBlock Background="#151515" Foreground="Red" VerticalAlignment="Center" FontSize="11" Margin="5 0 0 0">Response</TextBlock>
<TextBox x:Name="txtResponse" TextChanged="txtResponse_TextChanged" Grid.Row="1" AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Visible" Background="Transparent" Foreground="Gainsboro" FontSize="10" BorderThickness="0" IsReadOnly="True" Padding="5" Text="{Binding Response}">
</TextBox>
</Grid>
<Grid Grid.Row="1" Background="Black">
<Rectangle VerticalAlignment="Top" Stroke="#202020" StrokeThickness="1"></Rectangle>
<UniformGrid Columns="3" HorizontalAlignment="Right">
<Button Cursor="Hand" Width="35" Height="35" Style="{DynamicResource MetroCircleButtonStyle}" mahapps:ButtonHelper.PreserveTextCase="True" BorderThickness="0" Command="{Binding ClearCommand}">
<StackPanel Orientation="Horizontal">
<fa:ImageAwesome Icon="Refresh" Foreground="Gainsboro" Width="16"></fa:ImageAwesome>
</StackPanel>
</Button>
<Button Cursor="Hand" Width="35" Height="35" VerticalAlignment="Center" Style="{DynamicResource MetroCircleButtonStyle}" mahapps:ButtonHelper.PreserveTextCase="True" BorderThickness="0" Command="{Binding CancelCommand}">
<StackPanel Orientation="Horizontal">
<fa:ImageAwesome Icon="Stop" Foreground="Red" Width="16"></fa:ImageAwesome>
</StackPanel>
</Button>
<Button Cursor="Hand" Width="35" Height="35" VerticalAlignment="Center" Style="{DynamicResource MetroCircleButtonStyle}" mahapps:ButtonHelper.PreserveTextCase="True" BorderThickness="0" Command="{Binding RunCommand}">
<StackPanel Orientation="Horizontal">
<fa:ImageAwesome Icon="Play" Width="16" Foreground="LimeGreen"></fa:ImageAwesome>
</StackPanel>
</Button>
</UniformGrid>
</Grid>
</Grid>
</Grid>
</UserControl>
|