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 find attached repro project for the related issues and questions. When you run the application you will see 4 buttons on the right. Clicking them will bring up a popup which contains a propertygrid. I'm also using a custom control derived from your propertygrid with a given style. In this style I set a datatemplate for the PropertyNameTemplate. The template is the template you gave me in a previous posting for making the row a bit higher. Here are my issues:
Thanks Oscar |
|
|
Hi Oscar, Thanks for sending through a repro project.
Let me know if you have questions about any of this. -Jason Fauchelle |
|
|
Thanks Jason Replies for 2. and 3. are fine. For 1. I have included a word document with 3 screen shots. I changed the MinHeight="50" in the DataTemplate x:Key="MsPropNameTemplate" to make it more obvious. You will note that in the first screen shot (press first button) the propertygrid gets cut off at the second value and below. If I collapse and expand the propertygrid then all the values are shown (this is image 2). This is the propertygrid with MyStyle. If I do not use the datatemplate for the propertyname (i.e. MsPropNameTemplate) then everything is okay. The datatemplate is the one you suggested to increase the height of the row. If you look at the third image you will see that the propertygrid is not cutoff (press second button). This propertygrid is the Mindscape propertygrid without any styling. ...Oscar |
|
|
Thanks Oscar, When I rebuilt the project, the issue could be reproduced. Unfortunately I have not been able to determine the cause of this issue. Using Snoop, I can see that the ActualHeight of the elements within the Popup, including the root element, are all what they should be, and yet the Popup is cutting off the content. The PropertyGrid themes (not including Generic of course) that we provide do seem to work however. I've been able to determine that this is because the style that manages the expander button applies an animation to the content which seems to cause a recalculation to occur affecting the the size of the Popup to be correct. I have not been able to provide a fix at our end, but you should be able to fix this by customizing the template of the property grid and including an animated container style from another theme. In Whalesong for example, the container style you'll want to find is called AllSingingAllDancingTreeViewItem. Looking through the Whalesong theme will help you to build your own custom PropertyGrid template. Hope that helps workaround the issue! -Jason Fauchelle |
|