IOTubeMaintain.xaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <UserControl x:Class="MaintainModule.Views.IOTubeMaintain"
  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:MaintainModule.Views"
  7. xmlns:prism="http://prismlibrary.com/"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <UserControl.Resources>
  11. <ResourceDictionary >
  12. <ResourceDictionary.MergedDictionaries>
  13. <ResourceDictionary Source="/UICommon;component/Resources.xaml"/>
  14. </ResourceDictionary.MergedDictionaries>
  15. </ResourceDictionary>
  16. </UserControl.Resources>
  17. <Grid Margin="8">
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="auto"/>
  20. <RowDefinition Height="8"/>
  21. <RowDefinition/>
  22. </Grid.RowDefinitions>
  23. <StackPanel Orientation="Horizontal">
  24. <RadioButton Style="{StaticResource FunctionRadio}" Width="120" Height="36" Command="{Binding SwitchCommand}" CommandParameter="IOTubeDI" IsChecked="True">DI</RadioButton>
  25. <RadioButton Style="{StaticResource FunctionRadio}" Width="120" Height="36" Command="{Binding SwitchCommand}" CommandParameter="IOTubeDO">DO</RadioButton>
  26. <RadioButton Style="{StaticResource FunctionRadio}" Width="120" Height="36" Command="{Binding SwitchCommand}" CommandParameter="IOTubeAI">AI</RadioButton>
  27. <RadioButton Style="{StaticResource FunctionRadio}" Width="120" Height="36" Command="{Binding SwitchCommand}" CommandParameter="IOTubeAO">AO</RadioButton>
  28. </StackPanel>
  29. <Border Grid.Row="2" CornerRadius="4" Background="{StaticResource BorderBackgroundColor}">
  30. <ContentControl Margin="8,16" prism:RegionManager.RegionName="IOTubeRegion"/>
  31. </Border>
  32. </Grid>
  33. </UserControl>