Mesen2/UI/Controls/ButtonWithIcon.axaml
Sour d208fdc6a7 UI: Support for NativeAOT
Added Windows & Linux builds using AOT compilation
2024-06-05 20:23:31 +09:00

15 lines
No EOL
615 B
XML

<Button
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"
x:Class="Mesen.Controls.ButtonWithIcon"
Name="root"
Classes="ButtonWithIcon"
>
<StackPanel Orientation="Horizontal">
<Image Name="IconImage" Margin="2 -1 0 0" Stretch="None" IsVisible="{Binding ShowIcon, ElementName=root}" />
<TextBlock HorizontalAlignment="Center" Text="{Binding Text, ElementName=root}" Margin="4 0 4 0" />
</StackPanel>
</Button>