RadRibbonView Basckstage as user control

2 posts, 0 answers
  1. Mario
    Mario avatar
    5 posts
    Member since:
    May 2017

    Posted 17 May Link to this post

    Good morning,

     

    In an application we have multiple RadRibbonView, I want to know if it's possible to create the Backstage control as UserControl and attach it to any of our RadRibbonView.

     

    Thanks

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    1404 posts

    Posted 22 May Link to this post

    Hello Mario,

    To achieve your requirement you can create a new UserControl and change its parent class from UserControl to RadRibbonBackstage. For example:
    <telerik:RadRibbonBackstage x:Class="WpfApplication4.RibbonBackstageUserControl"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                 mc:Ignorable="d"
                 d:DesignHeight="300" d:DesignWidth="300">
        <telerik:RadRibbonBackstageItem Header="Item 1" />
        <telerik:RadRibbonBackstageItem Header="Item 2" />
        <telerik:RadRibbonBackstageItem Header="Item 3" />
        <telerik:RadRibbonBackstageItem Header="Item 4" />
    </telerik:RadRibbonBackstage>
    Then you can use it in the different ribbon views.
    <telerik:RadRibbonView.Backstage>
        <local:RibbonBackstageUserControl />
    </telerik:RadRibbonView.Backstage>

    Regards,
    Martin Ivanov
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top