-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Describe the bug
A clear and concise description of what the bug is.
新建wpf项目并且引入HandyControl,HandyControl版本=3.1.0
经过测试,此问题在3.0.0版本中未发现,仅在3.1.0中出现该问题
在Menu标签中加入Separator会导致异常
Code
<Window
x:Class="WpfApp3.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WpfApp3"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="MainWindow"
Width="800"
Height="450"
mc:Ignorable="d">
<Grid>
<Menu>
<MenuItem />
<MenuItem />
<Separator />
<MenuItem />
<MenuItem />
</Menu>
</Grid>
</Window>
异常
错误 XDG0066 用于类型“MenuItem”的样式不能应用于类型“Separator”。
错误 XDG0062 Baml 流中出现意外记录。尝试添加到不是集合或具有 TypeConverter 的 Path。
Metadata
Metadata
Assignees
Labels
No labels