Files
Hyperbar/Hyperbar.Windows/SettingsView.xaml.cs
T
2024-02-08 22:16:58 +00:00

25 lines
588 B
C#

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