Skip to content

Menu animations work only on first time #171

@NotroDev

Description

@NotroDev

Describe the bug

Hello. It seems that animation in Menu works only on first use.
Example code:

<Menu
    x:Name="MenuBar"
    Grid.Column="1"
    Margin="0,2.5,0,0"
    hc:MenuAttach.AnimationMode="Top2BottomWithFade"
    hc:MenuAttach.IsEnabledAnimation="True"
    Background="Transparent"
    FontFamily="Open Sans Medium"
    IsMainMenu="True">
    <MenuItem x:Name="File_MenuItem" Header="File">
        <MenuItem
            Header="File" />
</Menu>

Steps to reproduce the bug

  1. Create Menu
  2. Enable animations
  3. Try it

Expected behavior

No response

Screenshots

No response

NuGet package version

HandyControls (Custom version) 3.4.0

IDE

Visual Studio 2022

Framework type

.Net 6.0

Windows version

Windows 11 (22000)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions