Skip to content

AutomationProperties property not found on object of type MenuItem ( After updating to v4.0.0) #1341

@LucaSamarCMA

Description

@LucaSamarCMA

Describe the bug

I get this exception after updating to the new release. I don't have this problem with version 4.0.0-rc.3

System.Windows.Data Error: 40 : BindingExpression path error: 'AutomationProperties' property not found on 'object' ''MenuItem' (Name='')'. BindingExpression:Path=AutomationProperties.Name; DataItem='MenuItem' (Name=''); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')

To Reproduce

Open the MenuItem

Expected behavior

don't get any xaml error

Screenshots

Image

Image

OS version

Windows 11

.NET version

net9

WPF-UI NuGet version

4.0.0

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions