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

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -