fix: 补回遗漏的判定

[skip changelog]
This commit is contained in:
status102
2024-11-16 15:39:37 +08:00
parent 9383dc5a89
commit 8104dcb4aa
2 changed files with 14 additions and 0 deletions

View File

@@ -50,6 +50,19 @@ public class ConnectSettingsUserControlModel : PropertyChangedBase
private static RunningState _runningState => RunningState.Instance;
/// <summary>
/// Gets or sets a value indicating whether it is idle.
/// </summary>
public bool Idle
{
get => Instances.SettingsViewModel.Idle;
set
{
Instances.SettingsViewModel.Idle = value;
NotifyOfPropertyChange(nameof(Idle));
}
}
/// <summary>
/// Gets the list of the configuration of connection.
/// </summary>

View File

@@ -226,6 +226,7 @@
hc:TitleElement.Title="{DynamicResource TouchMode}"
hc:TitleElement.TitlePlacement="Left"
DisplayMemberPath="Display"
IsHitTestVisible="{Binding Idle}"
ItemsSource="{Binding TouchModeList}"
SelectedValue="{Binding TouchMode}"
SelectedValuePath="Value" />