xaml - WPF Layout Control -



xaml - WPF Layout Control -

i new wpf. have wpf window contains grid dynamic in size along columns. window supposed little utility type window ontop.

the issue user types richtextbox expands of bottom of page, scroll bar appear.

i have tried placing in container doesnt work.

i want grid resize if user decides resize window.

<window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" height="202" width="927" windowstyle="toolwindow" showintaskbar="true" topmost="true"> <grid> <grid.columndefinitions> <columndefinition width="*"></columndefinition> <columndefinition width="auto"></columndefinition> <columndefinition width="*"></columndefinition> <columndefinition width="auto"></columndefinition> <columndefinition width="*"></columndefinition> </grid.columndefinitions> <gridsplitter horizontalalignment="right" verticalalignment="stretch" resizebehavior="previousandnext" grid.column="1" width="1" resizedirection="columns"/> <gridsplitter horizontalalignment="right" resizebehavior="previousandnext" verticalalignment="stretch" grid.column="3" width="1" resizedirection="columns"/> <stackpanel grid.column="2" height="auto"> <label background="steelblue" horizontalalignment="stretch" foreground="white" height="25">note</label> <richtextbox scrollviewer.verticalscrollbarvisibility="auto" scrollviewer.cancontentscroll="true" horizontalalignment="stretch" verticalalignment="stretch" > </richtextbox> </stackpanel> </grid> </window>

have tried:

<richtextbox scrollviewer.verticalscrollbarvisibility="auto" scrollviewer.cancontentscroll="true" horizontalalignment="stretch" verticalalignment="stretch" ***height="300">*** </richtextbox>

wpf xaml

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -