Class SfSegmentedItem

    Show / Hide Table of Contents

    Class SfSegmentedItem

    Represents the container for an item in a SfSegmentedControl. The SfSegmentedItem class provides the container for items displayed in a SfSegmentedControl. Populate the SfSegmentedControl by adding objects by binding its ItemsSource property to a data source. When items are added to the SfSegmentedControl a SfSegmentedItem container is created automatically for each item in the collection. Specify the look of the SfSegmentedItem by setting the ItemContainerStyle property to a style with a target type of SfSegmentedItem.

    Control style and template

    Key Description
    SyncfusionSegmentedItemBackground Used to set the background control of the segmented item.
    SyncfusionSegmentedItemHoverBackground Used to set the hover background color of the segmented item.
    SyncfusionSegmentedItemSelectedHoverBackground Used to set the selected hover background color of the segmented item.
    SyncfusionSegmentedItemSelectedBackground Used to set the selected background color of the segmented item.
    SyncfusionSegmentedItemForeground Used to set the foreground color of the segmented item.
    SyncfusionSegmentedItemHoverForeground Used to set the hover foreground color of the segmented item.
    SyncfusionSegmentedItemSelectedHoverForeground Used to set the selected hover foreground color of the segmented item.
    SyncfusionSegmentedItemSelectedForeground Used to set the selected foreground color of the segmented item.
    SyncfusionSegmentedItemDisabledBackground Used to set the background color of the disabled item.
    SyncfusionSegmentedItemDisabledForeground Used to set the foreground color of the disabled item.
    Inheritance
    System.Object
    SfSegmentedItem
    Namespace: Syncfusion.UI.Xaml.Editors
    Assembly: Syncfusion.Editors.WinUI.dll
    Syntax
    public class SfSegmentedItem : SelectorItem

    Constructors

    SfSegmentedItem()

    Initializes a new instance of the SfSegmentedItem class.

    Declaration
    public SfSegmentedItem()

    Methods

    OnApplyTemplate()

    Builds the visual tree for the SfSegmentedItem.

    Declaration
    protected override void OnApplyTemplate()

    OnCreateAutomationPeer()

    Returns a class-specific AutomationPeer implementations for the Microsoft UI Automation infrasturcutre.

    Declaration
    protected override AutomationPeer OnCreateAutomationPeer()
    Returns
    Type Description
    Microsoft.UI.Xaml.Automation.Peers.AutomationPeer

    The class-specific AutomationPeer subclass.

    OnPointerEntered(PointerRoutedEventArgs)

    Occurs when mouse is entered over the SfSegmentedItem.

    Declaration
    protected override void OnPointerEntered(PointerRoutedEventArgs e)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.Input.PointerRoutedEventArgs e

    The Microsoft.UI.Xaml.Input.PointerRoutedEventArgs that contains the event data.

    OnPointerExited(PointerRoutedEventArgs)

    Occurs when the mouse is exiting the SfSegmentedItem.

    Declaration
    protected override void OnPointerExited(PointerRoutedEventArgs e)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.Input.PointerRoutedEventArgs e

    The Microsoft.UI.Xaml.Input.PointerRoutedEventArgs that contains the event data.

    OnPointerMoved(PointerRoutedEventArgs)

    Occurs when mouse is moved over the SfSegmentedItem.

    Declaration
    protected override void OnPointerMoved(PointerRoutedEventArgs e)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.Input.PointerRoutedEventArgs e

    The Microsoft.UI.Xaml.Input.PointerRoutedEventArgs that contains the event data.

    OnPointerPressed(PointerRoutedEventArgs)

    Occurs when the mouse click is pressed over the SfSegmentedItem.

    Declaration
    protected override void OnPointerPressed(PointerRoutedEventArgs e)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.Input.PointerRoutedEventArgs e

    The Microsoft.UI.Xaml.Input.PointerRoutedEventArgs that contains the event data.

    OnPointerReleased(PointerRoutedEventArgs)

    Occurs when mouse click is pressed over the SfSegmentedItem.

    Declaration
    protected override void OnPointerReleased(PointerRoutedEventArgs e)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.Input.PointerRoutedEventArgs e

    The Microsoft.UI.Xaml.Input.PointerRoutedEventArgs that contains the event data.

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