UcSectionLanguage.xaml 1.52 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<UserControl x:Class="FLY.Thick.Base.UI.CustomSection.UcSectionLanguage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:flyctrl="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
             mc:Ignorable="d" >
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.Thick.Base.UI;component/Themes/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <StackPanel Orientation="Horizontal" >
潘栩锋's avatar
潘栩锋 committed
16
        <Border Style="{StaticResource Styles.ParamSection.Border}">
潘栩锋's avatar
潘栩锋 committed
17 18 19 20 21
            <TextBlock Text="语言" />
        </Border>
        <StackPanel >
            <StackPanel Orientation="Horizontal">
                <StackPanel Margin="{StaticResource ControlMargin}">
潘栩锋's avatar
潘栩锋 committed
22
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="语言" />
潘栩锋's avatar
潘栩锋 committed
23 24 25 26 27 28 29 30
                    <flyctrl:ToggleButtonOnOff Grid.Column="4" Grid.Row="4" Grid.RowSpan="2" 
                                OnLabel="en"  OffLabel="中文" IsChecked="{Binding IsEn}"/>
                </StackPanel>
            </StackPanel>

        </StackPanel>
    </StackPanel>
</UserControl>