Mini8Config.xaml 1.4 KB

123456789101112131415161718192021222324252627282930
  1. <UserControl x:Class="HistoryView.Controls.Mini8Config"
  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:HistoryView.Controls"
  7. mc:Ignorable="d"
  8. x:Name="This"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <Grid Margin="8">
  11. <Expander Style="{StaticResource ExpanderStyle1}">
  12. <Expander.Header>
  13. <Border Background="{StaticResource LightThemeColor}" CornerRadius="4" Margin="4,0">
  14. <TextBlock FontSize="13" Margin="12,8">
  15. <Run>Mini8 No.</Run>
  16. <Run Text="{Binding ElementName=This, Path=Source.Index}"/>
  17. </TextBlock>
  18. </Border>
  19. </Expander.Header>
  20. <ItemsControl Grid.Row="2" ItemsSource="{Binding ElementName=This, Path=Source.ChannelConfig}" Margin="12,0,0,0">
  21. <ItemsControl.ItemTemplate>
  22. <DataTemplate>
  23. <local:ChannelConfig Margin="0,0,0,0" Source="{Binding Value}"/>
  24. </DataTemplate>
  25. </ItemsControl.ItemTemplate>
  26. </ItemsControl>
  27. </Expander>
  28. </Grid>
  29. </UserControl>