mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
38 lines
2.2 KiB
XML
38 lines
2.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:globalization="clr-namespace:System.Globalization;assembly=System.Runtime"
|
|
xmlns:layout="clr-namespace:Artemis.UI.Screens.Device.Layout"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="Artemis.UI.Screens.Device.Layout.DeviceLogicalLayoutDialogView"
|
|
x:DataType="layout:DeviceLogicalLayoutDialogViewModel">
|
|
<StackPanel>
|
|
<TextBlock TextWrapping="Wrap">Artemis couldn't automatically determine the logical layout of your</TextBlock>
|
|
<TextBlock TextWrapping="Wrap" Text="{CompiledBinding Device.RgbDevice.DeviceInfo.DeviceName, Mode=OneWay}" />
|
|
|
|
<TextBlock Margin="0 10" TextWrapping="Wrap">
|
|
While not as important as the physical layout, setting the correct logical layout will allow Artemis to show the right keycaps (if a matching layout file is present)
|
|
</TextBlock>
|
|
|
|
<AutoCompleteBox HorizontalAlignment="Stretch"
|
|
ItemsSource="{CompiledBinding Regions}"
|
|
SelectedItem="{CompiledBinding SelectedRegion}"
|
|
ValueMemberBinding="{CompiledBinding EnglishName, DataType=globalization:RegionInfo}"
|
|
Watermark="Enter keyboard country name"
|
|
FilterMode="Custom"
|
|
MaxDropDownHeight="200"
|
|
MinimumPrefixLength="0"
|
|
Name="RegionsAutoCompleteBox">
|
|
<AutoCompleteBox.ItemTemplate>
|
|
<DataTemplate DataType="{x:Type globalization:RegionInfo}">
|
|
<TextBlock>
|
|
<Run Text="{CompiledBinding EnglishName}" />
|
|
<Run Text="(" /><Run FontWeight="SemiBold" Text="{CompiledBinding TwoLetterISORegionName}" />
|
|
<Run Text=")" />
|
|
</TextBlock>
|
|
</DataTemplate>
|
|
</AutoCompleteBox.ItemTemplate>
|
|
</AutoCompleteBox>
|
|
</StackPanel>
|
|
</UserControl> |