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
|
Hello, Please refer to the attached word document for images. I'm using the property grid without any customization and the default editors that are used. When the PropertyGrid is loaded how can I have the following automatically happen?
Thanks Oscar |
|
|
Hi Oscar, 1) To set the height of the rows, you can set the PropertyNameTemplate of the property grid, and set the MinHeight on the outer container of that template. Here is an example (I've set the MinHeight to 22 on the outer Border):
To get this to work without copying in a bunch of generic resources, you can include the following resource dictionary:
2) To change the editor used for all boolean properties, you can add the following to ms:PropertyGrid.Editors:
3) I couldn't find a way to make the property column smaller and the value column bigger by default. As you've probably noticed, the property column auto sizes based on its content. You may need to provide custom styles to control this. Have a look through our various property grid themes to see how to create custom styles. Let me know if you have further questions. -Jason Fauchelle |
|
|
For anyone else seeing this. To make one work you also need to include in the xaml
|
|