StepGroupSelectView.xaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <UserControl x:Class="FurnaceUI.Views.Scheduled.StepGroupSelectView"
  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.Scheduled"
  7. mc:Ignorable="d"
  8. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:cal="http://www.caliburn.org"
  9. Height="300" Width="600">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition></RowDefinition>
  13. </Grid.RowDefinitions>
  14. <ListBox ItemsSource="{Binding CurrentNode.Items}">
  15. <ListBox.ItemsPanel>
  16. <ItemsPanelTemplate>
  17. <UniformGrid Columns="5" Rows="2"></UniformGrid>
  18. </ItemsPanelTemplate>
  19. </ListBox.ItemsPanel>
  20. <ListBox.ItemTemplate>
  21. <DataTemplate>
  22. <RadioButton Margin="5" Width="95" Height="100" Content="{Binding Name}" IsChecked="{Binding IsExpanded}">
  23. <i:Interaction.Triggers>
  24. <i:EventTrigger EventName="Click">
  25. <cal:ActionMessage MethodName="StepGroupEdit">
  26. <cal:Parameter Value="{Binding Name}"/>
  27. </cal:ActionMessage>
  28. </i:EventTrigger>
  29. </i:Interaction.Triggers>
  30. </RadioButton>
  31. </DataTemplate>
  32. </ListBox.ItemTemplate>
  33. </ListBox>
  34. </Grid>
  35. </UserControl>