add custom TabContent to shape

4 posts, 1 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 16 May 2014 Link to this post

    Hi,

    i have to add different TabContents to different shapes? How to do that?

    Thanks
    Best Regards
    Rene
  2. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 20 May 2014 Link to this post

    Hi Rene,

    Can you tell me what you mean by "TabContents". Do you mean the SettingsPane? If so you can take a look at the Custom SettingsPane SDK example.

    In general, if you want to implement different SettingsPane depending on the shape type you can define different styles for the panes. Then attach to the AdditionalContentActivated event of the RadDiagram and inside the event handler you can check the type of the selected items (e.ContextItems) and then set a style for the settings pane based on the shape type. The code in the handler will be something like the following:

    private void diagram_AdditionalContentActivated(object sender, Telerik.Windows.Controls.Diagrams.AdditionalContentActivatedEventArgs e)
    {
        if (e.ContextItems.Contains(item of type a))
        {
            this.settingsPane = this.Resources["settingsPanelStyl1"];
        }
        else
        {
            this.settingsPane = this.Resources["settingsPanelStyl2"];
        }
    }

    Regards,
    Martin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 22 May 2014 in reply to Martin Link to this post

    Hi,

    thanks, this is it! But how do I save the properties in the xml-File?

    Thanks
    Rene
  5. Answer
    Martin
    Admin
    Martin avatar
    1099 posts

    Posted 26 May 2014 Link to this post

    Hi Rene,

    As I can see you asked your question also in another forum where one of my colleagues answered it. You can see the reply in the following forum.

    Regards,
    Martin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top