feat: start

This commit is contained in:
rabbitism
2024-01-10 00:45:03 +08:00
parent 5cf6b8ad0f
commit abb1bffaeb
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
namespace Ursa.Controls.MessageBox;
public static class MessageBox
{
public static async Task ShowAsync(string message)
{
var messageWindow = new MessageBoxWindow();
}
}

View File

@@ -0,0 +1,15 @@
using Avalonia.Controls;
using Avalonia.Platform;
namespace Ursa.Controls.MessageBox;
public class MessageBoxWindow: Window
{
protected override Type StyleKeyOverride => typeof(MessageBoxWindow);
static MessageBoxWindow()
{
ExtendClientAreaChromeHintsProperty.OverrideDefaultValue<MessageBoxWindow>(ExtendClientAreaChromeHints
.NoChrome);
}
}