WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RibbonMenuGroup

    Show / Hide Table of Contents

    Class RibbonMenuGroup

    Represents a RibbonMenuGroup control.

    Inheritance
    System.Object
    RibbonMenuGroup
    ApplicationMenuGroup
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public class RibbonMenuGroup : HeaderedItemsControl
    Remarks

    RibbonMenuGroup class represents a group control that can display child UIElements in border with header and icon bar.

    Examples

    This example shows how to create a RibbonMenuGroup in XAML.

    <ribbon:RibbonMenuGroup Header="Header1">
    <ribbon:RibbonButton SizeForm = "Small" Label="Item1" SmallIcon="SampleImages/Document32.png"/><ribbon:RibbonButton SizeForm = "Small" Label="Item2" SmallIcon="SampleImages/Document32.png"/>
    <ribbon:RibbonButton SizeForm = "Small" Label="Item3" SmallIcon="SampleImages/Save32.png"/>
    <ribbon:RibbonButton SizeForm = "Small" Label="Item4" SmallIcon="SampleImages/Close32.png"/>
    </ribbon:RibbonMenuGroup>

    This example shows how to create a RibbonMenuGroup in C#.

    RibbonButton button1;
    RibbonButton button2;
    RibbonMenuGroup group = new RibbonMenuGroup();
    group.Items.Add(button1);
    group.Items.Add(button2);

    Constructors

    RibbonMenuGroup()

    Declaration
    public RibbonMenuGroup()

    Fields

    IconBarEnabledProperty

    Specifies whether menu icon bar is enabled. This is a dependency property.

    Declaration
    public static readonly DependencyProperty IconBarEnabledProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    IconBarEnabled

    Gets or sets a value indicating whether menu icon bar is enabled.

    Declaration
    public bool IconBarEnabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    Type: System.Boolean True if icon bar is enabled, false if disabled.

    Examples
    RibbonMenuGroup group;
    // ....
    group.IconBarEnabled = true;

    Methods

    OnCreateAutomationPeer()

    Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation infrastructure.

    Declaration
    protected override AutomationPeer OnCreateAutomationPeer()
    Returns
    Type Description
    System.Windows.Automation.Peers.AutomationPeer

    The type-specific AutomationPeer implementation.

    OnItemsChanged(NotifyCollectionChangedEventArgs)

    Declaration
    protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e)
    Parameters
    Type Name Description
    System.Collections.Specialized.NotifyCollectionChangedEventArgs e

    OnKeyDown(KeyEventArgs)

    Invoked when an unhandled Keyboard.KeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

    Declaration
    protected override void OnKeyDown(KeyEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.KeyEventArgs e

    The event data

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved