我尝试使用圆形菜单,但尽管遵循了教程,但我收到了这个错误:
这些是我得到的错误:
这是我的代码:
<Window x:Class="GMAO.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:p="clr-namespace:GMAO;assembly=GMAO"
Title="MatserCom GMAO" Height="479" Width="792" Background="#9DB9EB" >
<StackPanel Height="331" HorizontalAlignment="Left" Margin="160,56,0,0" Name="stackPanel2" VerticalAlignment="Top" Width="452">
<Canvas Background="Black">
<p:PieMenu x:Name="Menu1" //I have error at this line with p:PieMenu>
<p:PieMenuItem Header="Item 1"> //I have error with all lignes that begin with p:PieMenuItem
<p:PieMenuItem Header="Item 1.1" Click="PieMenuItem_Click"/>
<p:PieMenuItem Header="Item 1.2" Command="NotACommand"/>
</p:PieMenuItem>
<p:PieMenuItem Header="Item 2">
<p:PieMenuItem Header="Item 2.1" />
</p:PieMenuItem>
<p:PieMenuItem Header="Item 3">
<p:PieMenuItem Header="Item 3.1" />
</p:PieMenuItem>
</p:PieMenu>
</Canvas>
</StackPanel>
当我尝试运行代码时,这是我得到的错误:
这是组装项目信息
感谢帮助