This is a migrated thread and some comments may be shown as answers.

Grid Fields Display Name Wrapping

3 Answers 125 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Stevo
Top achievements
Rank 1
Stevo asked on 09 Oct 2013, 12:26 PM
Hi,

we would like to do some tweaks in Property Grid Fields styling. Sometimes the property names are too long and overlap with the fields.

 I suppose the way to go is to edit the GridField template, but we are struggling to find it/generate it in Blend (using the Windows8 Theme).

Any ideas?
Thanks,
Stevo

3 Answers, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 11 Oct 2013, 07:08 AM
Hi,

 Are you using the StyleManager theming mechanism, or the newer implicit-style-based one? Basically, you might avoid editing the template by subscribing to FieldLoaded, searching the visual tree for the label element and setting the property there, using the ChildrenOfType method. However, this approach might be a little bit slower.

Regards,
Ivan Ivanov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Stevo
Top achievements
Rank 1
answered on 11 Oct 2013, 08:13 AM
Hi Ivan,

We are setting the theme in code
Telerik.Windows.Controls.StyleManager.ApplicationTheme = new Windows8Theme();

I suppose the FieldLoaded event would work, but the Property Grid with 80 fields is very slow, there is about 1 second delay between when the 'Item' is set and the values are actually rendered.

Any tips how to make it better performing?

Before we just simply had 80 <label>:  <textblock> template items in a stack panel (the data is readonly) and that performed much better.
Thanks,
Stevo
0
Ivan Ivanov
Telerik team
answered on 11 Oct 2013, 08:56 AM
Hi,

Yes, the styling approach should definitely be faster. You may try retrieving the template from here: Telerik\RadControls for WPF Q2 2013\Themes\WPF40\Windows8\Themes\Telerik.Windows.Controls.Data.xaml. Our StyleManager theming mechanism applies theme at runtime, so that IDE's designer retrieves the default theme's resource (OfficeBlack). Aside from the theming topic, you may try setting RenderMode=Flat and see whether there is any performance improvement in your scenario.

Regards,
Ivan Ivanov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
PropertyGrid
Asked by
Stevo
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Stevo
Top achievements
Rank 1
Share this question
or