Files
Pilz/Pilz.UI.AvaloniaUI/Controls/ImageDropDownButton.axaml
2025-11-16 08:42:15 +01:00

29 lines
981 B
XML

<DropDownButton
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"
xmlns:symbols="clr-namespace:Pilz.UI.Symbols;assembly=Pilz.UI"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center"
x:Class="Pilz.UI.AvaloniaUI.Controls.ImageDropDownButton">
<StackPanel
Orientation="Horizontal"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Spacing="6">
<Image
x:Name="ButtonImage"
VerticalAlignment="Center"
Width="{x:Static symbols:SymbolGlobals.DefaultImageSmallSize}"
Height="{x:Static symbols:SymbolGlobals.DefaultImageSmallSize}"
IsVisible="False"/>
<TextBlock
x:Name="ButtonText"
VerticalAlignment="Center"/>
</StackPanel>
</DropDownButton>