c# - Add items to popup programmatically -
i need create , add items popup code-behind. it's easy in xaml:
<popup staysopen="false"> <dockpanel> //items here </dockpanel> </popup>
i think "child" need add items don't see "add", "items", "source" or "content" inside. know how this?
popup mypopup= new popup(); mypopup.child // ... need add items there
popup frameworkelement , can have 1 child (child) => cannot add multiple controls inside, can set child uielement want. instance dockpanel, , use addchild on panel add further controls.
mypopup.child = new dockpanel();
Comments
Post a Comment