wpf - how to add DragDockPanel Dynamically, using ItemsControl? -


 <grid>    <blacklight_controls:dragdockpanelhost >           <itemscontrol itemssource="{binding path=dashboarditemlist}">                         <itemscontrol.itemtemplate>                             <datatemplate>                                 <blacklight_controls:dragdockpanel header="titel"/>                             </datatemplate>                         </itemscontrol.itemtemplate>                     </itemscontrol>                 </blacklight_controls:dragdockpanelhost>        </grid> 

this appear this..

the newly generated dragdockpanels itemscontrol, added inside dragdockpanel. not dragdockpanelhost. because dragdockpanels cannot move. need , generated dragdockpanes must directly add dragdockpanelhost, no inside dragdockpanel.

i had same problem. removing itemtemplate produced effect wanted.

<blacklight:dragdockpanelhost x:name="fields" >         <itemscontrol>             <blacklight:dragdockpanel style="{staticresource dragdockpanelstyle}">                 <contentcontrol cal:view.model="{binding}" />             </blacklight:dragdockpanel>         </itemscontrol>      </blacklight:dragdockpanelhost> 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -