alexa
menu

WPF

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

    Show / Hide Table of Contents

    Class SortButton

    A custom button control that represents and toggles a sorting direction.

    Inheritance
    System.Object
    SortButton
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Tools.Wpf.dll
    Syntax
    public class SortButton : Button

    Constructors

    SortButton()

    Initializes a new instance of the SortButton class.

    Declaration
    public SortButton()

    Fields

    SortButtonStateProperty

    Identifies the SortButtonState dependency property.

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

    Properties

    SortButtonState

    Gets or sets the current sorting direction state of the button.

    Declaration
    public SortingDirection SortButtonState { get; set; }
    Property Value
    Type
    SortingDirection

    Methods

    OnApplyTemplate()

    Invoked whenever application code or internal processes call ApplyTemplate.

    Declaration
    public override void OnApplyTemplate()

    OnClick()

    Handles the click event for the SortButton.

    Declaration
    protected override void OnClick()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved