feat: add appear animation.

This commit is contained in:
rabbitism
2024-02-04 17:36:37 +08:00
parent dbbf6b62b6
commit 5b8763bc4a
5 changed files with 55 additions and 31 deletions

View File

@@ -4,8 +4,6 @@ namespace Ursa.Controls;
public class CustomDrawerControl: DrawerControlBase
{
internal bool IsCloseButtonVisible { get; set; }
protected override void OnApplyTemplate(TemplateAppliedEventArgs e)
{
base.OnApplyTemplate(e);

View File

@@ -40,7 +40,7 @@ public const string PART_CloseButton = "PART_CloseButton";
public static readonly StyledProperty<bool> IsCloseButtonVisibleProperty =
AvaloniaProperty.Register<DrawerControlBase, bool>(
nameof(IsCloseButtonVisible));
nameof(IsCloseButtonVisible), defaultValue: true);
public bool IsCloseButtonVisible
{