WPF Grid Row maximum height but resizable via GridSplitter -


i have expander @ bottom should resizable via grid splitter .

but not auto height in content (because included data grid need whole window).

what resolution?

my code: ...

<expander grid.row="1" expanddirection="up" isexpanded="true">             <grid>                 <grid.rowdefinitions>                     <rowdefinition minheight="4" />                     <rowdefinition height="auto" />                 </grid.rowdefinitions>                 <gridsplitter grid.row="0" height="4" resizedirection="rows"                                                 horizontalalignment="stretch" verticalalignment="top" resizebehavior="currentandnext"/>                 <datagrid .../>             </grid> 

i tried set maximum height of rowdefinition --> content not stretched after resizing gridsplitter.

i used following code behind solve issue:

<grid>.rowdefinitions[1].height = new gridlength(100, gridunittype.pixel); 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -