feat: WIP.

This commit is contained in:
rabbitism
2024-06-25 21:49:23 +08:00
parent 27b8acf714
commit fd9a8668c5
3 changed files with 61 additions and 2 deletions

View File

@@ -0,0 +1,50 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Platform;
namespace Ursa.Controls;
/// <summary>
/// Ursa Window is an advanced Window control that provides a lot of features and customization options.
/// </summary>
public class UrsaWindow: Window
{
public static readonly StyledProperty<bool> ShowFullScreenButtonProperty = AvaloniaProperty.Register<UrsaWindow, bool>(
nameof(ShowFullScreenButton), false);
public bool ShowFullScreenButton
{
get => GetValue(ShowFullScreenButtonProperty);
set => SetValue(ShowFullScreenButtonProperty, value);
}
public static readonly StyledProperty<bool> ShowMaximumButtonProperty = AvaloniaProperty.Register<UrsaWindow, bool>(
nameof(ShowMaximumButton));
public bool ShowMaximumButton
{
get => GetValue(ShowMaximumButtonProperty);
set => SetValue(ShowMaximumButtonProperty, value);
}
public static readonly StyledProperty<bool> ShowMinimumButtonProperty = AvaloniaProperty.Register<UrsaWindow, bool>(
nameof(ShowMinimumButton));
public bool ShowMinimumButton
{
get => GetValue(ShowMinimumButtonProperty);
set => SetValue(ShowMinimumButtonProperty, value);
}
public static readonly StyledProperty<bool> ShowCloseButtonProperty = AvaloniaProperty.Register<UrsaWindow, bool>(
nameof(ShowCloseButton));
public bool ShowCloseButton
{
get => GetValue(ShowCloseButtonProperty);
set => SetValue(ShowCloseButtonProperty, value);
}
}