Unplanned
Last Updated: 11 Feb 2021 07:10 by ADMIN
Matt
Created on: 13 Aug 2020 08:14
Category: RibbonView
Type: Feature Request
3
RibbonView: Expose a property to control the visibility of the backstage back button
Expose a property to control the visibility of the backstage back button.
2 comments
ADMIN
Martin Ivanov
Posted on: 11 Feb 2021 07:10

Hello,

This is not included in our current planning. However, you can follow this item to get notified about changes in its status.

In the meantime, you can achieve your requirement if you edit the ControlTemplate of the RadRibbonBackstage control. Based on the theme and the BackstagePosition property, the template name vary between "TabControlTemplate2013" and "TabControlTemplate2010". The template targets RadTabControl, but it is applied to RadRibbonBackstage (which derives from RadTabControl). In the template, remove the RadRibbonButton with Style set to BackstageCloseButtonStyle or change its Visibility. Then apply the customized template via the Template property of RadRibbonBackstage. 

An alternative approach is to use the visual tree helper methods to get the close button in code and hide it there. For example:

private void RadRibbonBackstage_Loaded(object sender, RoutedEventArgs e)
{
	var backstage = (RadRibbonBackstage)sender;
	var ribbonButton = backstage.ChildrenOfType<RadRibbonButton>().FirstOrDefault(x => x.Command == RibbonCommands.CloseBackstage);
	if (ribbonButton != null)
	{
		ribbonButton.Visibility = Visibility.Collapsed;
		// Alternatively, you can data bind bind the Visibility to a property 
		// or save the button in a field and update it on an event in code-behind
	}
}

I hope that helps.

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Mehul
Posted on: 10 Feb 2021 10:57

Even i need to use in project and it is must !!

when can we expect, it will complete ?

Attached Files: