Files
Hyperbar/Hyperbar.Windows/SettingsView.xaml.cs
T
TheXamlGuy 41b9d5e0fc Settings
2024-02-15 20:59:36 +00:00

27 lines
649 B
C#

using Hyperbar.UI.Windows;
using Microsoft.UI;
using Microsoft.UI.Windowing;
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;
}