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
Post a Comment