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

RadRibbonView Basckstage as user control

3 Answers 103 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Denis
Top achievements
Rank 1
Denis asked on 17 May 2017, 08:48 AM

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

3 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 22 May 2017, 10:04 AM
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.
0
Jaroslav
Top achievements
Rank 1
answered on 22 Jun 2018, 10:05 AM
Hello, is there any possibility to close backstage from this user control?
0
Martin Ivanov
Telerik team
answered on 22 Jun 2018, 10:28 AM
Hello Jaroslav,

You can expose a property of type RadRibbonView in the UserControl and set it to the parent RadRibbonView. Then you can set the IsBackstageOpen property of the ribbon to False, when you want to close it.

Regards,
Martin Ivanov
Progress Telerik
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.
Tags
RibbonView and RibbonWindow
Asked by
Denis
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Jaroslav
Top achievements
Rank 1
Share this question
or