-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathPlc2MainPage.xaml
More file actions
48 lines (48 loc) · 2.15 KB
/
Copy pathPlc2MainPage.xaml
File metadata and controls
48 lines (48 loc) · 2.15 KB
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
<UserControl x:Class="SimpleHmi.Views.Plc2MainPage"
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:local="clr-namespace:SimpleHmi.Views"
xmlns:prism="http://prismlibrary.com/"
xmlns:converters="clr-namespace:SimpleHmi.Converters"
prism:ViewModelLocator.AutoWireViewModel="True"
xmlns:design="clr-namespace:SimpleHmi.Designer"
d:DataContext="{d:DesignInstance design:DesignPlc2MainPageViewModel, IsDesignTimeCreatable=True}"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<UserControl.Resources>
<converters:BooleanToBrushConverter x:Key="BooleanToBrushConverter"/>
</UserControl.Resources>
<Grid>
<TextBlock Width="69"
Height="17"
Margin="21,10,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Text="PLC 2 data"
TextWrapping="Wrap" />
<Button Width="111"
Height="26"
Margin="21,50,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Content="Write first output"
Command="{Binding WriteFirstOutputCommand}"/>
<Ellipse Width="19"
Height="18"
Margin="137,54,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Fill="{Binding FirstOutput,
Converter={StaticResource BooleanToBrushConverter}}"
Stroke="Black" />
<TextBlock Width="117"
Height="17"
Margin="161,55,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Text="First output value"
TextWrapping="Wrap" />
</Grid>
</UserControl>