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

SettingsPaneViewStyle

1 Answer 107 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 01 Aug 2013, 06:12 PM
Please show the proper use of SettingsPane.SettingsPaneViewStyle property.

Setting this property appears to do nothing.

Following http://www.telerik.com/help/wpf/raddiagram-extensions-settingspane.html I edited the control template of SettingsPaneView.  Setting the SettingsPaneViewStyle property to this new resource does nothing.  A bit frustrating since I was following the documentation.

Searching the forums I found this thread which contains a download from Zarko showing how to edit the SettingsPaneView control template.

http://www.telerik.com/community/forums/wpf/diagram/adding-my-own-properties-into-settingspane-of-raddiagram-on-selection-of-shape.aspx

In addition to editing the SettingsPaneView control template, his example also edits the SettingsPane template to hard code the use of the modified SettingsPaneView control template.  That's a small piece of very important information that has been left out of your documentation.

The apparently defunct SettingsPane.SettingsPaneViewStyle property either needs to be implemented or removed.

Yeah, I just edited the default SettingsPane control template and it does not contain a template biding to set the SettingsPaneView Style.  Here's the fix:

<telerik:SettingsPaneView x:Name="SettingsPaneView" ContextItems="{x:Null}" Diagram="{TemplateBinding Diagram}" 
Height="{TemplateBinding SettingsPaneViewHeight}" IsActive="{Binding IsActive, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" 
Margin="7,0,0,0" Width="{TemplateBinding SettingsPaneViewWidth}"
Style="{TemplateBinding SettingsPaneViewStyle}">

Mike

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 06 Aug 2013, 08:44 AM
Hello Mike,

 We understand your frustration. This property does not work currently and we logged this as a bug, we will consider mark this property obsolete, directly delete it or make it work. Currently, since Q2 2013, in order to apply a customized SettingsPaneview ControlTemplate, you have to use an implicit Style (with no x-key) targeting the SettingsPaneView - just like it is demonstrated in the GitHub Solution.
Please excuse us for the inconvenience caused.

Regards,
Petar Mladenov
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
Diagram
Asked by
Mike
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or