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 Ivan
Is there a simple way to let the split position follow the propertygrid resize ? The default behavior is that the property titles are fixed while the property editors resize according to the propertygrid resize
Thanks |
|
|
You can't do this easily in RTM, but it is possible in nightly builds dated September 2009 and above. In this case, the width of the left hand column (the split position) is controlled by the TreeListView.ResizeColumnWidth attached property. So you can control the width by data binding or handling resize events. Here's an example of keeping the split position halfway across using the SizeChanged event: private void PropertyGrid_SizeChanged(object sender, SizeChangedEventArgs e) To do this in XAML, you would data-bind the TreeListView.ResizeColumnWidth to the ActualWidth using a suitable converter: <ms:PropertyGrid ms:TreeListView.ResizeColumnWidth="{Binding ActualWidth, RelativeSource={RelativeSource Self}, Converter={StaticResource HalvingConverter}}" /> |
|