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, From the sample project, it gives some samples for templating the ProperyGrid. Can we make template that support the toolbar? Another question about templating, Thanks. |
|
|
To add the standard toolbar to the template, just include a ViewCommandsToolBar in the template. Bind its visibility to IsToolBarVisible and its Target to the BindingView of the property grid being templated (e.g. via a {RelativeSource AncestorType...}). Typically you would wrap everything in a DockPanel with the ViewCommandsToolBar docked to the top: <DockPanel> ViewCommandsToolBar is just a control and you can change its template using normal control templating techniques. Your buttons should send the commands defined on the ViewCommandsToolBar class, and if you want filtering, you must include a TextBox called PART_FilterText. You can hide the collection add/remove buttons by setting the grid's AllowModifyCollections property to False. |
|
|
Thanks, Ivan. One another question. Whalesong.xaml create template for ItemTemplate in TreeListView. How to make enable the expander and splitter. Thanks. |
|
|
There's an explanation of how to restore the expander to the Poppy sample at http://www.mindscape.co.nz/forums/Thread.aspx?PostID=1709 (scroll down to the last message but one). Hopefully that will resolve your problem, but if not, just let me know! |
|