-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml.cs
More file actions
33 lines (28 loc) · 929 Bytes
/
MainWindow.xaml.cs
File metadata and controls
33 lines (28 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Media;
// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
namespace TagEditor
{
/// <summary>
/// An empty window that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class MainWindow : WinUIEx.WindowEx
{
private const double DefaultMinHeight = 550;
private const double DefaultMinWidth = 900;
private const double DefaultHeight = 550;
private const double DefaultWidth = 900;
public MainWindow()
{
this.InitializeComponent();
this.SetTitleBar(AppTitleBar);
this.MinHeight = DefaultMinHeight;
this.MinWidth = DefaultMinWidth;
this.Height = DefaultHeight;
this.Width = DefaultWidth;
this.SystemBackdrop = new DesktopAcrylicBackdrop();
ElementSoundPlayer.State = ElementSoundPlayerState.Off;
}
}
}