mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
46 lines
1.0 KiB
C#
46 lines
1.0 KiB
C#
using System;
|
|
using Artemis.UI.Screens.Root;
|
|
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Controls.Shapes;
|
|
using Avalonia.Input;
|
|
using Avalonia.Markup.Xaml;
|
|
using Avalonia.ReactiveUI;
|
|
using FluentAvalonia.Core.ApplicationModel;
|
|
|
|
namespace Artemis.UI
|
|
{
|
|
public class MainWindow : ReactiveCoreWindow<RootViewModel>
|
|
{
|
|
public MainWindow()
|
|
{
|
|
Opened += OnOpened;
|
|
InitializeComponent();
|
|
#if DEBUG
|
|
this.AttachDevTools();
|
|
#endif
|
|
}
|
|
|
|
private void OnOpened(object? sender, EventArgs e)
|
|
{
|
|
Opened -= OnOpened;
|
|
ICoreApplicationView coreAppTitleBar = this;
|
|
if (coreAppTitleBar.TitleBar != null)
|
|
{
|
|
coreAppTitleBar.TitleBar.ExtendViewIntoTitleBar = true;
|
|
SetTitleBar(this.Get<Border>("TitleBar"));
|
|
}
|
|
}
|
|
|
|
private void SetupTitlebar()
|
|
{
|
|
|
|
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
AvaloniaXamlLoader.Load(this);
|
|
}
|
|
}
|
|
} |