Files
Hyperbar/Hyperbar.Windows/SettingsView.xaml.cs
T
2024-02-11 18:09:22 +00:00

26 lines
619 B
C#

using Hyperbar.UI.Windows;
using Microsoft.UI;
using Microsoft.UI.Xaml;
namespace Hyperbar.Windows;
[NavigationTarget("Settings")]
public partial class SettingsView :
Window
{
public SettingsView()
{
InitializeComponent();
this.TitleBarConfiguration(args =>
{
args.ExtendsContentIntoTitleBar = true;
args.ButtonBackgroundColor = Colors.Transparent;
args.ButtonInactiveBackgroundColor = Colors.Transparent;
});
}
protected SettingsViewModel ViewModel =>
(SettingsViewModel)(Content as FrameworkElement)!.DataContext;
}