fix: 运行时禁止切换标签页

This commit is contained in:
uye
2026-01-08 16:10:49 +08:00
parent 5de2bb1b8d
commit cf7fa1728f
2 changed files with 6 additions and 0 deletions

View File

@@ -243,6 +243,11 @@ public partial class CopilotViewModel : Screen
{
get => _copilotTabIndex;
set {
if (!Idle)
{
return;
}
if (!SetAndNotify(ref _copilotTabIndex, value))
{
return;

View File

@@ -45,6 +45,7 @@
<TabControl
HorizontalAlignment="Center"
BorderThickness="0"
IsEnabled="{Binding Idle}"
SelectedIndex="{Binding CopilotTabIndex}"
Style="{StaticResource TabControlSliding}">
<TabControl.Template>