This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I modified one of your samples (01_GettingStarted.xaml ) so the the main window is resizable (min. height = 0) and when I make the window small enough, the property grid gets a vertical scroll bar as needed, which is great. BUT if I put the propertygrid inside a stackpanel, no vertical scrollbar appears when needed. (See my other post too -- taken together, these two issues have me blocked!) < StackPanel><TextBlock>Properties</TextBlock> <ms:PropertyGrid Name="PropertyGrid" /> </StackPanel>
|
|
|
Hi Paul, This is an artefact of the WPF StackPanel behaviour. You will see the same thing if you put a ListBox with lots of items inside a StackPanel -- the StackPanel tells the ListBox it has infinite vertical space, so the ListBox expands off the window instead of displaying a scroll bar. Would it be feasible for you to use a DockPanel or Grid instead? These grant the contained element only as much space as is actually available, so the PropertyGrid (or ListBox, or whatever) knows to display its scroll bar. |
|