1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <Window x:Class="CyberX8_MainPages.Views.HeaterView"
- 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:CyberX8_MainPages.Views"
- xmlns:converters="clr-namespace:CyberX8_Themes.Converters;assembly=CyberX8_Themes"
- mc:Ignorable="d"
- Height="260" Width="310" WindowStyle="None" ResizeMode="CanMinimize" BorderThickness="1" MouseLeftButtonDown="Window_MouseLeftButtonDown" Background="#B1D2F2">
- <Window.Resources>
- <converters:BoolToBool x:Key="BoolToBool"/>
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="1*"/>
- </Grid.ColumnDefinitions>
- <Label Grid.Row="0" Grid.Column="1" Content="Device Name:" VerticalAlignment="Bottom"/>
- <Label Grid.Row="1" Grid.Column="1" Content="Unit:" VerticalAlignment="Bottom"/>
- <Label Grid.Row="2" Grid.Column="1" Content="Max:" VerticalAlignment="Bottom"/>
- <Label Grid.Row="3" Grid.Column="1" Content="Default:" VerticalAlignment="Bottom"/>
- <Label Grid.Row="4" Grid.Column="1" Content="Feedback:" VerticalAlignment="Bottom"/>
- <Label Grid.Row="5" Grid.Column="1" Content="Set Point:" VerticalAlignment="Bottom"/>
- <Label Grid.Row="0" Grid.Column="2" Content="{Binding Path=HeaterData.DeviceName,UpdateSourceTrigger=PropertyChanged}" Width="150" Height="28" HorizontalAlignment="Left" BorderThickness="0,0,0,1" BorderBrush="Black" FontSize="13" FontFamily="Microsoft YaHei" VerticalContentAlignment="Center" />
- <Label Grid.Row="1" Grid.Column="2" Content="{Binding Path=HeaterData.Unit,UpdateSourceTrigger=PropertyChanged}" Width="150" BorderThickness="0,0,0,1" BorderBrush="Black" FontSize="13" FontFamily="Microsoft YaHei" Height="28" VerticalContentAlignment="Center" />
- <Label Grid.Row="2" Grid.Column="2" Content="{Binding Path=HeaterData.Scale,UpdateSourceTrigger=PropertyChanged}" Width="150" BorderThickness="0,0,0,1" BorderBrush="Black" FontSize="13" FontFamily="Microsoft YaHei" Height="28" VerticalContentAlignment="Center" />
- <Label Grid.Row="3" Grid.Column="2" Content="{Binding Path=HeaterData.DefaultValue,UpdateSourceTrigger=PropertyChanged}" Width="150" BorderThickness="0,0,0,1" BorderBrush="Black" FontSize="13" FontFamily="Microsoft YaHei" Height="28" VerticalContentAlignment="Center" />
- <Label Grid.Row="4" Grid.Column="2" Content="{Binding HeaterData.FeedBack,UpdateSourceTrigger=PropertyChanged}" ContentStringFormat="F1" Width="150" BorderThickness="0,0,0,1" BorderBrush="Black" FontSize="13" FontFamily="Microsoft YaHei" Height="28" VerticalContentAlignment="Center" />
- <TextBox Grid.Row="5" Grid.Column="2" x:Name="inputBox" BorderBrush="Green" BorderThickness="0,0,0,1" Width="150" HorizontalAlignment="Left" FontSize="13" FontFamily="Microsoft YaHei" Height="30" VerticalContentAlignment="Center" Background="Transparent"/>
- <StackPanel Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="4" Orientation="Horizontal">
- <Button Content="Set" x:Name="btnSet" Click="ButtonSet_Click" Width="60" Height="26" VerticalAlignment="Top" Margin="5,3,0,0" IsEnabled="{Binding HeaterData.IsPowerOnSetPoint}"/>
- <Button Content="Heater On" x:Name="btnHeaterOn" Click="ButtonHeaterOn_Click" Width="70" Height="26" VerticalAlignment="Top" Margin="5,3,0,0" IsEnabled="{Binding HeaterData.IsPowerOnSetPoint,Converter={StaticResource BoolToBool}}"/>
- <Button Content="Heater Off" x:Name="btnHeaterOff" Click="ButtonHeaterOff_Click" Width="70" Height="26" VerticalAlignment="Top" Margin="5,3,0,0" IsEnabled="{Binding HeaterData.IsPowerOnSetPoint}"/>
- <Button Content="Cancel" Click="ButtonCancel_Click" Width="60" Height="26" VerticalAlignment="Top" Margin="10,3,0,0" />
- </StackPanel>
- </Grid>
- </Window>
|