12345678910111213141516171819202122232425262728293031 |
- <UserControl
- x:Class="ShakerApp.Views.LanguageView"
- xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="using:ShakerApp"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="using:ShakerApp.ViewModels"
- d:DesignHeight="450"
- d:DesignWidth="800"
- x:DataType="vm:ShakerSettingViewModel"
- Background="Transparent"
- DataContext="{Binding Source={x:Static vm:ShakerSettingViewModel.Instance}}">
- <StackPanel
- Margin="10,10,0,0"
- VerticalAlignment="Top"
- Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="{DynamicResource Language}" />
- <ComboBox
- Width="220"
- Height="{StaticResource ItemHeight}"
- ItemsSource="{Binding Languages, Mode=OneWay}"
- SelectedValue="{Binding CurrentLanguage}">
- <ComboBox.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Name}" />
- </DataTemplate>
- </ComboBox.ItemTemplate>
- </ComboBox>
- </StackPanel>
- </UserControl>
|