CustomValueWindow.xaml 2.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <Window x:Class="NEIntelligentControl2.Windows.CustomValueWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:NEIntelligentControl2.Windows"
  7. mc:Ignorable="d"
  8. Title="自定义挂牌" Height="178.2" Width="316.8" WindowStartupLocation="CenterOwner" Loaded="Window_Loaded">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="Auto"/>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition/>
  14. <RowDefinition Height="Auto"/>
  15. </Grid.RowDefinitions>
  16. <TextBlock Text="输入自定义挂牌内容" HorizontalAlignment="Center" Margin="4" Foreground="#FF2D2D2D" FontSize="14"/>
  17. <Grid Grid.Row="1" Margin="10">
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="Auto"/>
  20. <ColumnDefinition Width="Auto"/>
  21. <ColumnDefinition/>
  22. </Grid.ColumnDefinitions>
  23. <TextBlock Text="挂牌类型:"/>
  24. <RadioButton Grid.Column="1" Content="检修" Margin="5,0" Click="RadioButton_Click" Tag="[检修]" IsChecked="True"/>
  25. <RadioButton Grid.Column="2" Content="故障" Margin="5,0" Click="RadioButton_Click" Tag="[故障]"/>
  26. </Grid>
  27. <TextBox Grid.Row="2" x:Name="_TBMain" VerticalContentAlignment="Center" Margin="10,0"/>
  28. <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" Margin="10">
  29. <Button Content="确定" Style="{DynamicResource ConfirmButtonStyle}" Padding="12,3" Margin="3" Click="Button_Click" Tag="ok" IsDefault="True"/>
  30. <Button Content="取消" Style="{DynamicResource CancelButtonStyle}" Padding="12,3" Margin="3" Click="Button_Click" Tag="cancel" IsCancel="True"/>
  31. </StackPanel>
  32. </Grid>
  33. </Window>