mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-28 14:08:16 +08:00
fix #707
This commit is contained in:
@@ -130,6 +130,24 @@ namespace System.Application.UI.Views
|
||||
title.Background = x ? null : _backgroundTemp;
|
||||
});
|
||||
}
|
||||
|
||||
if (nav != null)
|
||||
{
|
||||
this.GetObservable(BoundsProperty)
|
||||
.Subscribe(x =>
|
||||
{
|
||||
switch (x.Width)
|
||||
{
|
||||
case < 950:
|
||||
nav.PaneDisplayMode = NavigationViewPaneDisplayMode.LeftCompact;
|
||||
nav.IsPaneOpen = false;
|
||||
break;
|
||||
default:
|
||||
nav.PaneDisplayMode = NavigationViewPaneDisplayMode.Left;
|
||||
break;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
|
||||
@@ -27,8 +27,8 @@ namespace System.Application.Settings
|
||||
/// <summary>
|
||||
/// 不再提示的消息框数组
|
||||
/// </summary>
|
||||
public static SerializableProperty<List<MessageBox.DontPromptType>> DoNotShowMessageBoxs { get; }
|
||||
= GetProperty(defaultValue: new List<MessageBox.DontPromptType>(), autoSave: false);
|
||||
public static SerializableProperty<HashSet<MessageBox.DontPromptType>> DoNotShowMessageBoxs { get; }
|
||||
= GetProperty(defaultValue: new HashSet<MessageBox.DontPromptType>(), autoSave: false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user