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 have some questions about PropertyGrid I work with the context menu which appears when user do the right click on property name column. 1. Can I styling property name column depends on the object, that present the edited propety. Say, I want the next: if property has int type set gray background color of cell that corresponds to the name of this property or set color of textblock text and etc 2. How can I styling selectedItem in template of PropertyGrid http://www.2shared.com/photo/wr_DYCrm/Example.html . PropertyGridTemplating project has templates that not support selectedItem visualization 3.How can I set current selected item in property grid? I know that PropertyGrid has SelectedGridItem property, but it is PropertyGridRowType. So, Should I create instance of this type and then assign to this property? I'm waiting for your help P.S.Sorry about my English |
|
|
1. Yes, you can do this by setting the PropertyNameTemplate. See http://www.mindscapehq.com/forums/Thread.aspx?PostID=2066 for info. Your template will need to bind to Node.PropertyType to get the data type of the property. 2. Bind to the IsSelected property of the containing TreeListViewItem: <DataTrigger 3. Locate the row in the PropertyGrid.BindingView collection. Then set SelectedGridItem to the desired row. Note you MUST use a row object from the BindingView -- do not create your own PropertyGridRow object. |
|
|
Thank you for reply. I'll try to do this |
|