wpf - The type 'p:PieMenu' AND 'p:PieMenuItem': was not found. Verify that you are not missing an assembly reference -


i try work circular menu i'm getting error despite following tutorial:

those errors get: enter image description here

and code:

<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 @ line p:piemenu>                     <p:piemenuitem header="item 1"> //i have error lignes begin 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> 

when try run code error get:

enter image description here

this assemly project informations

enter image description here help

try declare p prefix way :

xmlns:p="clr-namespace:gmao.piemenu" 

i assumed piemenu , piemenuitem declared in namespace : gmao.piemenu. , don't have specify assembly name if same assembly/project.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -