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 am using the treeview and I have a DataTemplate that consists of a Stack Panel. Is there a way that the row for that property can grow Height wise. I want to show a textbox and than underneath it show a button. The button is getting cut-off, was wondering if there is a set property for the hieght of the row to enlarge it.
Thanks, Justin |
|
|
I am pretty sure that a TreeView will size its rows to fit the content, unless you do something to override that (e.g. in the ItemContainerStyle). Could you post the TreeView control declaration and the data template? |
|
|
Here is my declaration of my datatemplate |
|
|
Hi Justin, I think the Blue style fixes the height of the rows. To get around this you would need to take a copy of the Blue style (source code is included in all editions of the grid, under Source / Style) and remove the fixed height. For the details, see this thread: http://www.mindscape.co.nz/forums/Thread.aspx?ThreadID=1737 (skip past the first couple of messages which are addressing another issue). It is written with reference to the Alloy style so the line numbers may be different but I'm sure you'll be able to match things up. |
|