Skip to content

Interface adjustment#908

Open
Crostia wants to merge 2 commits intomicrosoft:mainfrom
Crostia:Interface-adjustment
Open

Interface adjustment#908
Crostia wants to merge 2 commits intomicrosoft:mainfrom
Crostia:Interface-adjustment

Conversation

@Crostia
Copy link

@Crostia Crostia commented Mar 3, 2026

Settings Button in NavigationView / 导航视图中的设置按钮

  • Description / 描述: Moved the Settings button from PaneFooter to FooterMenuItems for better navigation support and added bottom margin / 将设置按钮从 PaneFooter 移到 FooterMenuItems 以获得更好的导航支持,并添加底部边距
  • Files Modified / 修改的文件:
    • Microsoft.Midi.Settings/Views/Core Pages/ShellPage.xaml
    • Microsoft.Midi.Settings/Strings/en-us/Resources.resw

Back Button Visibility / 返回按钮可见性

  • Description / 描述: Set NavigationView.IsBackButtonVisible="Collapsed" and set the custom BackButton Visibility="Collapsed" to completely hide the back button / 设置 NavigationView.IsBackButtonVisible="Collapsed" 并将自定义 BackButton 的 Visibility="Collapsed" 以彻底隐藏返回按钮
  • Files Modified / 修改的文件:
    • Microsoft.Midi.Settings/Views/Core Pages/ShellPage.xaml

Crostia added 2 commits March 3, 2026 21:46
#### 1. Missing `CommunityToolkit.WinUI.Controls.TitleBar` Package / 缺少 `CommunityToolkit.WinUI.Controls.TitleBar` 包
- **Issue / 问题**: The `TitleBar` control from CommunityToolkit was referenced but the package does not exist on NuGet / 引用了 CommunityToolkit 的 `TitleBar` 控件,但该包在 NuGet 上不存在
- **Solution / 解决方案**: Replaced the `controls:TitleBar` with a standard Grid layout in `ShellPage.xaml` / 在 `ShellPage.xaml` 中将 `controls:TitleBar` 替换为标准 Grid 布局
- **Files Modified / 修改的文件**:
  - `Microsoft.Midi.Settings/Views/Core Pages/ShellPage.xaml`
  - `Microsoft.Midi.Settings/Views/Core Pages/ShellPage.xaml.cs`

#### 2. NU1510 Warnings - Redundant Package References / NU1510 警告 - 冗余的包引用
- **Issue / 问题**: `System.Text.Json` and `System.Text.RegularExpressions` are built-in to .NET 10 and should not be explicitly referenced / `System.Text.Json` 和 `System.Text.RegularExpressions` 是 .NET 10 的内置组件,不应显式引用
- **Solution / 解决方案**: Removed the explicit package references / 移除显式的包引用
- **Files Modified / 修改的文件**:
  - `Microsoft.Midi.Settings/Microsoft.Midi.Settings.csproj`

#### 3. WMC1506 Warnings - OneWay Binding Notifications / WMC1506 警告 - OneWay 绑定通知
- **Issue / 问题**: OneWay bindings require properties to support change notifications, but the MIDI library types do not implement `INotifyPropertyChanged` / OneWay 绑定需要属性支持变更通知,但 MIDI 库类型未实现 `INotifyPropertyChanged`
- **Solution / 解决方案**: Changed binding mode from `OneWay` to `OneTime` for read-only port information / 将只读端口信息的绑定模式从 `OneWay` 改为 `OneTime`
- **Files Modified / 修改的文件**:
  - `Microsoft.Midi.Settings/Views/Endpoint Management Pages/EndpointsAllPage.xaml`
#### Settings Button in NavigationView / 导航视图中的设置按钮
- **Description / 描述**: Moved the Settings button from `PaneFooter` to `FooterMenuItems` for better navigation support and added bottom margin / 将设置按钮从 `PaneFooter` 移到 `FooterMenuItems` 以获得更好的导航支持,并添加底部边距
- **Files Modified / 修改的文件**:
  - `Microsoft.Midi.Settings/Views/Core Pages/ShellPage.xaml`
  - `Microsoft.Midi.Settings/Strings/en-us/Resources.resw`

#### Back Button Visibility / 返回按钮可见性
- **Description / 描述**: Set `NavigationView.IsBackButtonVisible="Collapsed"` and set the custom BackButton `Visibility="Collapsed"` to completely hide the back button / 设置 `NavigationView.IsBackButtonVisible="Collapsed"` 并将自定义 BackButton 的 `Visibility="Collapsed"` 以彻底隐藏返回按钮
- **Files Modified / 修改的文件**:
  - `Microsoft.Midi.Settings/Views/Core Pages/ShellPage.xaml`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant