PressureInfoView.xaml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <UserControl x:Class="FurnaceUI.Client.Dialog.PressureInfoView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:FurnaceUI.Views.Recipes" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:cal="http://www.caliburn.org"
  7. mc:Ignorable="d"
  8. Height="150" Width="200" FontFamily="Segoe">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="0"></RowDefinition>
  12. <RowDefinition Height="110"></RowDefinition>
  13. <RowDefinition Height="*"></RowDefinition>
  14. <RowDefinition Height="30"></RowDefinition>
  15. </Grid.RowDefinitions>
  16. <Label Grid.Row="0" Content="Sensor Information" Foreground="White" Background="#0C206A" >
  17. </Label>
  18. <StackPanel Grid.Row="1" Orientation="Vertical">
  19. <StackPanel Orientation="Horizontal">
  20. <Label Content="1:VG13"></Label>
  21. </StackPanel>
  22. <StackPanel Orientation="Horizontal">
  23. <TextBox Margin="40 0 0 0" Width="70" Height="25" Text="{Binding VG13Data.FeedBack , StringFormat={}{0:F3}}" Style="{DynamicResource TextBox_NoClik}" IsReadOnly="True"></TextBox>
  24. <TextBox Margin="2 0 0 0" Width="40" Height="25" Text="{Binding DefaultUnit}" Style="{DynamicResource TextBox_NoClik}" IsReadOnly="True"></TextBox>
  25. </StackPanel>
  26. <StackPanel Orientation="Horizontal">
  27. <Label Content="2:VG11"></Label>
  28. </StackPanel>
  29. <StackPanel Orientation="Horizontal">
  30. <TextBox Margin="40 0 0 0" Width="70" Height="25" Text="{Binding VG11Data.FeedBack , StringFormat={}{0:F1}}" Style="{DynamicResource TextBox_NoClik}" IsReadOnly="True"></TextBox>
  31. <TextBox Margin="2 0 0 0" Width="40" Height="25" Text="{Binding DefaultUnit}" Style="{DynamicResource TextBox_NoClik}" IsReadOnly="True"></TextBox>
  32. </StackPanel>
  33. </StackPanel>
  34. <Button Grid.Row="3" Width="60" Content="OK">
  35. <i:Interaction.Triggers>
  36. <i:EventTrigger EventName="Click">
  37. <cal:ActionMessage MethodName="OK">
  38. </cal:ActionMessage>
  39. </i:EventTrigger>
  40. </i:Interaction.Triggers>
  41. </Button>
  42. </Grid>
  43. </UserControl>