101 lines
4.9 KiB
XML
101 lines
4.9 KiB
XML
<UserControl x:Class="Common.MediaContainer"
|
|
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:common="clr-namespace:Common"
|
|
xmlns:HMIToolkit="clr-namespace:HMIToolkit"
|
|
d:DataContext="{d:DesignInstance Type=common:MediaContainerVm, IsDesignTimeCreatable=True}"
|
|
mc:Ignorable="d">
|
|
|
|
<UserControl.Resources>
|
|
<HMIToolkit:FeedbackToColorConverter x:Key="feedbackConverter" />
|
|
</UserControl.Resources>
|
|
<!-- :DataContext="{d:DesignInstance Type=local:AnalogValueVM, IsDesignTimeCreatable=True}" -->
|
|
<!-- Style to see things in the designer-->
|
|
<d:DesignerProperties.DesignStyle>
|
|
<Style TargetType="UserControl">
|
|
<!-- Property="Background" Value="White" /> -->
|
|
<Setter Property="Height" Value="Auto" />
|
|
<Setter Property="Width" Value="Auto"></Setter>
|
|
</Style>
|
|
</d:DesignerProperties.DesignStyle>
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3" BorderBrush="White" BorderThickness="2"/>
|
|
<!-- <Label Grid.Column="0" Content="{Binding SName}" VerticalAlignment="Center" HorizontalAlignment="Left"/> -->
|
|
<Label Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" HorizontalContentAlignment="Center" Content="{Binding SName, Mode=OneWay }" FontSize="35"/>
|
|
|
|
<Grid Grid.Row="1" Grid.Column="2">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0" BorderBrush="White" BorderThickness="1" />
|
|
<Border Grid.Row="1" BorderBrush="White" BorderThickness="1" />
|
|
<Label Grid.Row="0" VerticalAlignment="Center" Content="Übervoll" HorizontalContentAlignment="Center" HorizontalAlignment="Center" FontSize="30"/>
|
|
<RadioButton Margin="5" Grid.Row="1" IsChecked="{Binding Overload}" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="False"/>
|
|
</Grid>
|
|
|
|
<Grid Grid.Column="1" Grid.Row="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0" BorderBrush="White" BorderThickness="1" />
|
|
<Border Grid.Row="1" BorderBrush="White" BorderThickness="1" />
|
|
<Label Grid.Row="0" VerticalAlignment="Center" Content="Voll" HorizontalAlignment="Center" FontSize="30"/>
|
|
<RadioButton Grid.Row="1" Margin="5" IsChecked="{Binding Full}" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="False"/>
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="1" Grid.Column="0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0" BorderBrush="White" BorderThickness="1" />
|
|
<Border Grid.Row="1" BorderBrush="White" BorderThickness="1" />
|
|
<Label Grid.Row="0" VerticalAlignment="Center" Content="Leer" HorizontalAlignment="Center" FontSize="30"/>
|
|
<RadioButton Grid.Row="1" Margin="5" IsChecked="{Binding Empty}" HorizontalAlignment="Center" VerticalAlignment="Center" IsEnabled="False"/>
|
|
</Grid>
|
|
|
|
<Border Grid.Column="1" Grid.Row="1" BorderBrush="White" BorderThickness="1"/>
|
|
|
|
<HMIToolkit:BinaryValveControl Grid.Row="2" Grid.Column="0" DataContext="{Binding FillValveControlVm}"/>
|
|
<HMIToolkit:BinaryValveControl Grid.Row="2" Grid.Column="1" DataContext="{Binding DrainValveControlVm}"/>
|
|
<HMIToolkit:BinaryValveControl Grid.Row="2" Grid.Column="2" DataContext="{Binding PumpValveControlVm}"/>
|
|
|
|
<!--<Button x:Name="btnOpen"
|
|
Grid.Column="0"
|
|
DataContext="{Binding EmptyButton}"
|
|
Command="{Binding ButtonClickedCommand}"
|
|
IsEnabled="{Binding XRelease}"
|
|
Background="{Binding IFeedback, Converter={StaticResource feedbackConverter}}"
|
|
Content="Leeren"
|
|
Height="100"
|
|
FontSize="30"/>-->
|
|
|
|
<!--<Button x:Name="btnFill"
|
|
Grid.Column="1"
|
|
DataContext="{Binding FillButton}"
|
|
Command="{Binding ButtonClickedCommand}"
|
|
IsEnabled="{Binding XRelease}"
|
|
Background="{Binding IFeedback, Converter={StaticResource feedbackConverter}}"
|
|
Content="Füllen"
|
|
Height="100"
|
|
FontSize="30"/>-->
|
|
|
|
</Grid>
|
|
</UserControl>
|