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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -