XAML the member resources is not recognized or is not accessible -


i try set change image of button when mouseover. had try code had error in object. me? thank you

<grid>     <page.resources>         <imagebrush x:key="aggiungi_ticket_normal" imagesource="properties/icons/add-2-512.png" />         <imagebrush x:key="aggiungi_ticket_hover" imagesource="properties/icons/search-2-512.pngg" />          <controltemplate targettype="button" x:key="btnaggiungi">             <grid name="button" background="{staticresource aggiungi_ticket_normal}">                 <contentpresenter/>             </grid>             <controltemplate.triggers>                 <trigger property="ismouseover" value="true">                     <setter targetname="button" property="background" value="{staticresource aggiungi_ticket_hover}" />                 </trigger>             </controltemplate.triggers>         </controltemplate>     </page.resources>      <button name="btnaggiungi" template="{staticresource btnaggiungi}" horizontalalignment="left" margin="50,56,0,0" verticalalignment="top" width="100" height="100" click="btnaggiungi_click" cursor="hand"/> 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -