WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfColorPalette - WPF API Reference | Syncfusion Syncfusion.UI.Xaml.Controls.Media.ColorSwatches swatches. ">

    Show / Hide Table of Contents

    Class SfColorPalette

    Represents a control that provides a set of colors in different Syncfusion.UI.Xaml.Controls.Media.ColorSwatches swatches.

    Inheritance
    System.Object
    SfColorPalette
    Namespace: Syncfusion.Windows.Controls.Media
    Assembly: Syncfusion.SfColorPalette.Wpf.dll
    Syntax
    public class SfColorPalette : Control

    Constructors

    SfColorPalette()

    Initializes a new instance of the SfColorPalette class.

    Declaration
    public SfColorPalette()

    Fields

    SelectedColorProperty

    Using a DependencyProperty as the backing store for SelectedColor. This enables animation, styling, binding, etc...

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

    Properties

    CanGoBack

    Gets or sets a value indicating whether the control can navigate back.

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

    true if can navigate back; otherwise, false.

    SelectedColor

    Gets a color from the Syncfusion.UI.Xaml.Controls.Media.SfColorPalette control that has been selected.

    Declaration
    public Color SelectedColor { get; }
    Property Value
    Type Description
    System.Windows.Media.Color
    Remarks

    The color can be selected from the Syncfusion.UI.Xaml.Controls.Media.ColorSwatches

    Methods

    GoBack()

    Returns the focus to the color palette from the Swatches

    Declaration
    public void GoBack()

    OnApplyTemplate()

    Initializes all the child elements of the Syncfusion.UI.Xaml.Controls.Media.SfColorPalette control.

    Declaration
    public override void OnApplyTemplate()

    OnGotFocus(RoutedEventArgs)

    Invoked when the ColorPalette gets the focus

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

    Routed Event

    OnLostFocus(RoutedEventArgs)

    Invoked when the focus is gone to another control

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

    Routed Event

    Events

    SelectedColorChanged

    Invoke an event when the Syncfusion.UI.Xaml.Controls.Media.SfColorPalette control's selected color has changed.

    Declaration
    public event DependencyPropertyChangedEventHandler SelectedColorChanged
    Event Type
    Type Description
    System.Windows.DependencyPropertyChangedEventHandler

    See Also

    Syncfusion.UI.Xaml.Controls.Media.SfColorPalette
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved