misc:Rename WHAnimationHelper to SizeAnimationHelper to make its purpose immediately clear and eliminate any ambiguity caused by the cryptic “WH.”
This commit is contained in:
@@ -41,9 +41,9 @@
|
||||
ItemsSource="{Binding MenuItems}"
|
||||
SelectedItem="{Binding SelectedMenuItem}"
|
||||
SubMenuBinding="{Binding Children}"
|
||||
u:WHAnimationHelper.TriggerAvaloniaProperty="{x:Static u:NavMenu.IsHorizontalCollapsedProperty}"
|
||||
u:WHAnimationHelper.CreateAnimation="{x:Static views:NavMenuDemo.NavMenuAnimation}"
|
||||
u:WHAnimationHelper.EnableWHAnimation="True">
|
||||
u:SizeAnimationHelper.TriggerAvaloniaProperty="{x:Static u:NavMenu.IsHorizontalCollapsedProperty}"
|
||||
u:SizeAnimationHelper.CreateAnimation="{x:Static views:NavMenuDemo.NavMenuAnimation}"
|
||||
u:SizeAnimationHelper.EnableWHAnimation="True">
|
||||
<u:NavMenu.Styles>
|
||||
<Style x:DataType="vm:MenuItem" Selector="u|NavMenuItem">
|
||||
<Setter Property="IsSeparator" Value="{Binding IsSeparator}" />
|
||||
|
||||
@@ -18,7 +18,7 @@ public partial class NavMenuDemo : UserControl
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public static WHAnimationHelperCreateAnimationDelegate NavMenuAnimation { get; } =
|
||||
public static SizeAnimationHelperAnimationGeneratorDelegate NavMenuAnimation { get; } =
|
||||
(_, oldDesiredSize, newDesiredSize) =>
|
||||
{
|
||||
if (oldDesiredSize.Width > newDesiredSize.Width)
|
||||
|
||||
Reference in New Issue
Block a user