Mesen2/UI/Controls/OptionSection.axaml
2023-01-25 16:03:56 -05:00

31 lines
No EOL
1,009 B
XML

<ItemsControl
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="50"
xmlns:c="using:Mesen.Controls"
x:Name="root"
HorizontalAlignment="Stretch"
Margin="0 15 0 0"
x:Class="Mesen.Controls.OptionSection"
>
<ItemsControl.Template>
<ControlTemplate>
<StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock
Text="{Binding Header, ElementName=root}"
Foreground="{StaticResource ThemeControlHighlightLowBrush}"
FontSize="13"
Margin="0 0 0 5"
/>
<ContentControl Content="{Binding Button, ElementName=root}" />
</StackPanel>
<StackPanel Margin="10 0 0 0">
<ItemsPresenter Items="{Binding Items, ElementName=root}" />
</StackPanel>
</StackPanel>
</ControlTemplate>
</ItemsControl.Template>
</ItemsControl>