Docked Content not restricted to dock area

Jun 4, 2009 at 8:00 PM

I have a usercontrol that I am putting as the content in a dockablecontent

<ad:DockablePane>
 <ad:DockableContent Title="Search Results">
   <views:SearchResults />
 </ad:DockableContent>
</ad:DockablePane>

In the user control there is a datagrid control, that has horizontal and vertical scrollbars.  However, if I put too much information in the datagrid, it's size isn't restricted to the size of the dockable pane.  Is there something that I need to set on the pane, or the dockable content to do that?

 

chad

 

Jun 5, 2009 at 3:45 PM

Found it, but not until I looked through SNOOP.

There was an extra stackpanel before the datagrid, which was extending it.  I removed that and everything worked.