misc:Refactor the WHAnimationHelper class structure to clearly define its responsibilities.

This commit is contained in:
望尘空忧
2025-08-10 00:00:30 +08:00
parent bb7873ef66
commit c801c4eec4
3 changed files with 50 additions and 4 deletions

View File

@@ -1,17 +1,18 @@
using Avalonia.Controls;
using Avalonia.Interactivity;
using Ursa.Controls;
using Ursa.Helpers;
namespace Ursa.Demo.Pages;
public partial class NavMenuDemo : UserControl
{
private readonly WHAnimationHelper _animationHelper;
private readonly NavMenuAnimationHelper _animationHelper;
public NavMenuDemo()
{
InitializeComponent();
_animationHelper = new WHAnimationHelper(menu, NavMenu.IsHorizontalCollapsedProperty);
_animationHelper = new NavMenuAnimationHelper(menu);
}
protected override void OnLoaded(RoutedEventArgs e)