将自动登录控件合并到同一行
This commit is contained in:
parent
bf95c337e7
commit
ef574f82c7
@ -24,11 +24,11 @@
|
||||
<!-- 用户下拉框随开关显示;保存按钮始终可见,以便保存关闭状态。 -->
|
||||
<Border Classes="panel settings-group" IsVisible="{Binding Access.IsAdministrator}" IsEnabled="{Binding CanChangeModels}">
|
||||
<StackPanel Spacing="4">
|
||||
<Grid ColumnDefinitions="80,*" ColumnSpacing="6" RowDefinitions="Auto,Auto" RowSpacing="4">
|
||||
<Grid ColumnDefinitions="80,*" ColumnSpacing="6">
|
||||
<TextBlock Text="自动登录" Classes="section-heading" />
|
||||
<ToggleSwitch x:Name="AutoLoginToggle" Grid.Column="1" AutomationProperties.Name="自动登录" OnContent="开" OffContent="关" HorizontalAlignment="Left" />
|
||||
<TextBlock Grid.Row="1" Text="用户" Foreground="{StaticResource FgDim}" IsVisible="{Binding #AutoLoginToggle.IsChecked}" />
|
||||
<DockPanel Grid.Row="1" Grid.Column="1" LastChildFill="False">
|
||||
<DockPanel Grid.Column="1" LastChildFill="False">
|
||||
<ToggleSwitch x:Name="AutoLoginToggle" DockPanel.Dock="Left" Margin="0,0,12,0" AutomationProperties.Name="自动登录"
|
||||
OnContent="开" OffContent="关" VerticalAlignment="Center" />
|
||||
<ComboBox x:Name="AutoLoginUserInput" DockPanel.Dock="Left" Width="220" Margin="0,0,6,0" VerticalAlignment="Center"
|
||||
AutomationProperties.Name="自动登录用户" PlaceholderText="请选择用户" IsVisible="{Binding #AutoLoginToggle.IsChecked}" />
|
||||
<Button Classes="settings-action" x:Name="SaveAutoLoginButton" DockPanel.Dock="Left" Content="保存" AutomationProperties.Name="保存自动登录设置" Click="SaveAutoLogin" VerticalAlignment="Center" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user