mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
44 lines
1.4 KiB
XML
44 lines
1.4 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:cfg="using:Mesen.Config"
|
|
xmlns:c="using:Mesen.Controls"
|
|
xmlns:l="using:Mesen.Localization"
|
|
mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="50"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalAlignment="Stretch"
|
|
x:Name="root"
|
|
x:DataType="cfg:FontConfig"
|
|
x:Class="Mesen.Views.FontOptionsView"
|
|
>
|
|
<Design.DataContext>
|
|
<cfg:FontConfig />
|
|
</Design.DataContext>
|
|
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Top">
|
|
<ComboBox x:Name="cboFontFamily" Width="175" SelectedItem="{Binding InternalFontFamily, ElementName=root}" />
|
|
<Image
|
|
Source="/Assets/Warning.png"
|
|
IsVisible="{Binding ShowWarning, ElementName=root}"
|
|
ToolTip.Tip="{l:Translate lblWarningMono}"
|
|
Stretch="None"
|
|
Margin="4 0"
|
|
ToolTip.ShowDelay="0"
|
|
ToolTip.HorizontalOffset="10"
|
|
/>
|
|
<Image
|
|
Source="/Assets/Error.png"
|
|
IsVisible="{Binding ShowError, ElementName=root}"
|
|
ToolTip.Tip="{l:Translate lblError}"
|
|
Stretch="None"
|
|
Margin="4 0"
|
|
ToolTip.ShowDelay="0"
|
|
ToolTip.HorizontalOffset="10"
|
|
/>
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="10 0 0 0" Text="{l:Translate lblSize}" />
|
|
<ComboBox x:Name="cboFontSize" Width="70" SelectedItem="{Binding FontSize}" />
|
|
</StackPanel>
|
|
</UserControl>
|