menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TabButton - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TabButton

    This class is responsible for Tab button of RibbonTab.

    Inheritance
    System.Object
    TabButton
    Implements
    System.IDisposable
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public class TabButton : ToggleButton, IDisposable

    Constructors

    TabButton()

    Initializes a new instance of the TabButton class.

    Declaration
    public TabButton()

    Fields

    CaptionProperty

    Identifies button label text. This is a dependency property.

    Declaration
    public static readonly DependencyProperty CaptionProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    M_arrangeWidth

    Arrange the width

    Declaration
    public double M_arrangeWidth
    Field Value
    Type
    System.Double

    M_margin

    Margin for tab button.

    Declaration
    public double M_margin
    Field Value
    Type
    System.Double

    Properties

    Caption

    Gets or sets button label text.

    Declaration
    public object Caption { get; set; }
    Property Value
    Type
    System.Object

    Methods

    AddCanvas()

    Adds the canvas.

    Declaration
    public void AddCanvas()

    ArrangeOverride(Size)

    Called to arrange and size the content of a System.Windows.Controls.Control object.

    Declaration
    protected override Size ArrangeOverride(Size arrangeBounds)
    Parameters
    Type Name Description
    System.Windows.Size arrangeBounds

    The computed size that is used to arrange the content.

    Returns
    Type Description
    System.Windows.Size

    The size of the control.

    Dispose()

    Declaration
    public void Dispose()

    MeasureOverride(Size)

    Called to remeasure a control.

    Declaration
    protected override Size MeasureOverride(Size constraint)
    Parameters
    Type Name Description
    System.Windows.Size constraint

    Measurement constraints, a control cannot return a size larger than the constraint.

    Returns
    Type Description
    System.Windows.Size

    The size of the control.

    OnApplyTemplate()

    When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.

    Declaration
    public override void OnApplyTemplate()

    OnCaptionChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises CaptionChanged event.

    Declaration
    protected virtual void OnCaptionChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property changes details, such as old value and new value.

    OnChecked(RoutedEventArgs)

    Called when a System.Windows.Controls.Primitives.ToggleButton raises a System.Windows.Controls.Primitives.ToggleButton.Checked event.

    Declaration
    protected override void OnChecked(RoutedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.RoutedEventArgs e

    The event data for the System.Windows.Controls.Primitives.ToggleButton.Checked event.

    OnClick()

    Updates property value cache and raises Click event.

    Declaration
    protected override void OnClick()

    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.

    OnMouseDoubleClick(MouseButtonEventArgs)

    Raises the System.Windows.Controls.Control.MouseDoubleClickevent.

    Declaration
    protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The event data.

    OnMouseDown(MouseButtonEventArgs)

    Invoked when an unhandled System.Windows.Input.Mouse.MouseDownattached 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 OnMouseDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    The System.Windows.Input.MouseButtonEventArgsthat contains the event data. This event data reports details about the mouse button that was pressed and the handled state.

    OnTouchDown(TouchEventArgs)

    Declaration
    protected override void OnTouchDown(TouchEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.TouchEventArgs e

    OnVisualParentChanged(DependencyObject)

    Invoked when the parent of this element in the visual tree is changed. Overrides System.Windows.UIElement.OnVisualParentChanged(System.Windows.DependencyObject).

    Declaration
    protected override void OnVisualParentChanged(DependencyObject oldParent)
    Parameters
    Type Name Description
    System.Windows.DependencyObject oldParent

    The old parent element. May be null to indicate that the element did not have a visual parent previously.

    Events

    CaptionChanged

    Event that is raised when Caption property is changed.

    Declaration
    public event PropertyChangedCallback CaptionChanged
    Event Type
    Type
    System.Windows.PropertyChangedCallback

    Implements

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