SettingsPaneViewStyle

2 posts, 0 answers
  1. Mike
    Mike avatar
    13 posts
    Member since:
    Dec 2010

    Posted 01 Aug 2013 Link to this post

    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
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 06 Aug 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top