at moment create object on xaml side of application. i'm looking create objects programmatically make software more customizable , flexible.
xaml side
<grid cal:message.attach="[mouseup] = [addbusiness]"> <rectangle fill="darkolivegreen"/> <contentcontrol contenttemplate="{staticresource icons.businesscard}" width="70"/> <textblock text="{binding newbusiness}" fontsize="14"/> </grid>
the problem i'm having attaching caliburn event grid code behind. how do that?
given code should
<grid x:name="mygrid" cal:message.attach="[mouseup] = [addbusiness]"> <rectangle fill="darkolivegreen"/> <contentcontrol contenttemplate="{staticresource icons.businesscard}" width="70"/> <textblock text="{binding newbusiness}" fontsize="14"/> </grid>
here code representation of attach
var grid = mygrid; // assuming code behind of above view message.setattach(grid, "[mouseup] = [addbusiness]");
Comments
Post a Comment