29 lines
1.3 KiB
XML
29 lines
1.3 KiB
XML
<UserControl
|
|
x:Class="Wallet.Avalonia.ItemCommandHeaderView"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:Wallet"
|
|
x:DataType="vm:ItemCommandHeaderViewModel">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<x:Double x:Key="ButtonWidth">36</x:Double>
|
|
<x:Double x:Key="ButtonHeight">36</x:Double>
|
|
<SolidColorBrush x:Key="ButtonBackground" Color="{DynamicResource SubtleFillColorTransparent}" />
|
|
<SolidColorBrush x:Key="ButtonBackgroundPointerOver" Color="{DynamicResource SubtleFillColorSecondary}" />
|
|
<SolidColorBrush x:Key="ButtonBackgroundPressed" Color="{DynamicResource SubtleFillColorTertiary}" />
|
|
<Thickness x:Key="ButtonBorderThemeThickness">0</Thickness>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<ItemsControl
|
|
Height="36"
|
|
HorizontalAlignment="Right"
|
|
ItemTemplate="{ReflectionBinding Template}"
|
|
ItemsSource="{Binding}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Horizontal" Spacing="6" />
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
</ItemsControl>
|
|
</UserControl>
|