Initial Push
This commit is contained in:
42
uniper_hmi/UniperHMI/OwnControls/Views/SMUControlButton.xaml
Normal file
42
uniper_hmi/UniperHMI/OwnControls/Views/SMUControlButton.xaml
Normal file
@@ -0,0 +1,42 @@
|
||||
<Button x:Class="UniperHMI.SMUControlButton"
|
||||
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:UniperHMI"
|
||||
d:DataContext="{d:DesignInstance Type=local:StringControlButtonVM, IsDesignTimeCreatable=True}"
|
||||
mc:Ignorable="d"
|
||||
Style="{StaticResource MahApps.Styles.Button}"
|
||||
HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
||||
Width="Auto" Height="Auto"
|
||||
x:Name="root">
|
||||
|
||||
<Grid x:Name="mainGrid" Width="Auto" Height="Auto">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- Row 0 -->
|
||||
<Label Content="{Binding SMUName, ElementName=root}" Grid.Row="0" Grid.ColumnSpan="3" FontSize="24" HorizontalAlignment="Center"/>
|
||||
|
||||
<!-- Row 1 -->
|
||||
<Line Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" X1="0" X2="{Binding ElementName=mainGrid, Path=ActualWidth}" Stroke="White" Margin="0,5,0,10"/>
|
||||
|
||||
<!-- Row 2 -->
|
||||
<Label Grid.Row="2" Grid.Column="0" Content="Spannung:" />
|
||||
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding Voltage, StringFormat=N2}" MaxLines="1" Width="70" TextAlignment="Right" IsReadOnly="True" />
|
||||
<Label Grid.Row="2" Grid.Column="2" Content="V" />
|
||||
|
||||
<!-- Row 3 -->
|
||||
<Label Content="Status:" Grid.Row="3" Grid.Column="0" />
|
||||
<Label Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" Content="{Binding Status}" HorizontalAlignment="Center"/>
|
||||
</Grid>
|
||||
</Button>
|
||||
Reference in New Issue
Block a user