c# - Bug in Visual Studio 2015(Enterprise) ?!(using name property) -


the error causing code:

 <stackpanel>     <button x:name="button" content="button"/>     <button height="277" name="button1">         <button.content>             <stackpanel>                 <textblock text="inhalt im button"></textblock>                 <textbox x:name="textbox" height="23" textwrapping="wrap" text="textbox" width="184"/>                 <image x:name="image" height="180" source=...0_2445832832163420875_n.jpg" width="247"/>             </stackpanel>         </button.content>     </button> </stackpanel> 

this gives me error:

   <stackpanel>         <button x:name="button" content="button"/>         <button height="277" >                      <button.name>                 button1             </button.name>             <button.content>                 <stackpanel>                     <textblock text="inhalt im button"></textblock>                     <textbox x:name="textbox" height="23" textwrapping="wrap" text="textbox" width="184"/>                     <image x:name="image" height="180" source="..97186010_2445832832163420875_n.jpg" width="247"/>                 </stackpanel>             </button.content>         </button>     </stackpanel> 

using <button.name>button1</button.name> cause error(in visual studio 2013 works without problems.).

the error message:

error cannot implicitly convert type 'system.windows.controls.stackpanel' 'system.windows.controls.button' wpftree error cs0029 cannot implicitly convert type 'system.windows.controls.stackpanel' 'system.windows.controls.button' wpftree


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -