MenuItemBaseStyle 样式绑定错误
fhaibing opened this issue · 0 comments
fhaibing commented
Describe the bug
nuget版本: 3.5.1
Framework type: .net8
错误提示:System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.Primitives.MenuBase', AncestorLevel='1''. BindingExpression:Path=(0); DataItem=null; target element is 'MenuItem' (Name=''); target property is 'Padding' (type 'Thickness')
Steps to reproduce the bug
1、添加menuitem,编译运行
2、查看xaml绑定失败提示
Expected behavior
No response
Screenshots
No response
NuGet package version
HandyControl 3.4.0
IDE
Visual Studio 2022
Framework type
.Net 6.0
Windows version
Windows 11 (22000)
Additional context
No response