mirror of
https://github.com/libretro/MesenCE.git
synced 2026-11-10 17:25:07 -10:00
41 lines
1.2 KiB
XML
41 lines
1.2 KiB
XML
<UserControl
|
|
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:l="using:Mesen.Localization"
|
|
xmlns:u="using:Mesen.Utilities"
|
|
xmlns:cp="using:Avalonia.Markup.Xaml.Converters"
|
|
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="50"
|
|
x:Name="root"
|
|
HorizontalAlignment="Stretch"
|
|
x:Class="Mesen.Debugger.Controls.ColorCheckbox"
|
|
>
|
|
<UserControl.Resources>
|
|
<cp:ColorToBrushConverter x:Key="ColorToBrushConverter"/>
|
|
</UserControl.Resources>
|
|
|
|
<StackPanel Orientation="Horizontal" DataContext="{Binding ElementName=root}">
|
|
<Button
|
|
MinWidth="0"
|
|
Padding="0"
|
|
Margin="0"
|
|
BorderThickness="0"
|
|
Background="Transparent"
|
|
Click="OnColorClick"
|
|
>
|
|
<Border
|
|
BorderBrush="{DynamicResource MesenBlackBorderColor}"
|
|
BorderThickness="1"
|
|
Background="{Binding Color, Converter={StaticResource ColorToBrushConverter}}"
|
|
Width="16"
|
|
Height="16"
|
|
/>
|
|
</Button>
|
|
<CheckBox
|
|
Content="{Binding Text}"
|
|
IsChecked="{Binding Checked}"
|
|
MinWidth="0"
|
|
/>
|
|
</StackPanel>
|
|
</UserControl> |