Collapsing

RadRibbonView supports collapsing, which means that the ribbon may automatically collapse to save space when the application is resized to a smaller size.

Properties

The following properties are related to the collapse functionality:

  • RadRibbonView.IsCollapsed - gives you information about the current state of the RadRibbonView control. The value of the IsCollapsed property is True if the ribbon bar is collapsed. Respectively - False, if the ribbon is not collapsed. The RadRibbonView's IsCollapsed property is read-only.

  • RadRibbonView.CollapseThresholdSize - allows you to control the size under which the RadRibbonView will collapse.

        <telerik:RadRibbonView x:Name="radRibbonView" CollapseThresholdSize="100,100"> 
            ... 
        </telerik:RadRibbonView> 
    

    Events

You can use the CollapsedChanged event to be notified when the ribbon collapse state is changed.

<telerik:RadRibbonView x:Name="radRibbonView" CollapseThresholdSize="100,100" CollapsedChanged="radRibbonView_CollapsedChanged"> 
 ... 
</telerik:RadRibbonView> 

private void radRibbonView_CollapsedChanged(object sender, Telerik.Windows.RadRoutedEventArgs e) 
{ 
 RadRibbonView ribbonView = sender as RadRibbonView; 
 bool isCollapsed = ribbonView.IsCollapsed; 
} 
Private Sub radRibbonView_CollapsedChanged(sender As Object, e As Telerik.Windows.RadRoutedEventArgs) 
    Dim ribbonView As RadRibbonView = TryCast(sender, RadRibbonView) 
    Dim isCollapsed As Boolean = ribbonView.IsCollapsed  
End Sub 

For more information about the events, exposed by the RadRibbonView, check out the Events - Overview topic.

In this article
Not finding the help you need? Improve this article