mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
15 lines
No EOL
615 B
XML
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> |