InterlockActionAutoView.xaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <UserControl x:Class="MECF.Framework.UI.Client.CenterViews.Parameter.InterlockActionAutoView"
  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:MECF.Framework.UI.Client.CenterViews.Parameter"
  7. xmlns:cal="clr-namespace:Caliburn.Micro"
  8. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  9. mc:Ignorable="d"
  10. Height="140" Width="150">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="*"/>
  14. </Grid.RowDefinitions>
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="70"/>
  18. <RowDefinition Height="70"/>
  19. </Grid.RowDefinitions>
  20. <Border Grid.Column="0" Grid.Row="0">
  21. <RadioButton Content="Auto" GroupName="Auto" Margin="10">
  22. <i:Interaction.Triggers>
  23. <i:EventTrigger EventName="Click">
  24. <cal:ActionMessage MethodName="AutoSelect">
  25. <cal:Parameter Value="Auto"/>
  26. </cal:ActionMessage>
  27. </i:EventTrigger>
  28. </i:Interaction.Triggers>
  29. </RadioButton>
  30. </Border>
  31. <Border Grid.Column="0" Grid.Row="1">
  32. <RadioButton Content="Manual" GroupName="Auto" Margin="10">
  33. <i:Interaction.Triggers>
  34. <i:EventTrigger EventName="Click">
  35. <cal:ActionMessage MethodName="AutoSelect">
  36. <cal:Parameter Value="Manual"/>
  37. </cal:ActionMessage>
  38. </i:EventTrigger>
  39. </i:Interaction.Triggers>
  40. </RadioButton>
  41. </Border>
  42. </Grid>
  43. </Grid>
  44. </UserControl>