menu

UWP

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

    Show / Hide Table of Contents

    Class SfColorPicker

    Represents a control for enabling the user to select colors from a selection box or slider SfColorPicker

    Inheritance
    System.Object
    SfColorPicker
    Implements
    System.IDisposable
    Namespace: Syncfusion.UI.Xaml.Controls.Media
    Assembly: Syncfusion.SfColorPickers.UWP.dll
    Syntax
    public class SfColorPicker : Control, IDisposable

    Constructors

    SfColorPicker()

    Initializes a new instance of the SfColorPicker class.

    Declaration
    public SfColorPicker()
    See Also
    Syncfusion.UI.Xaml.Controls.Media

    Fields

    PreviousColorProperty

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

    Declaration
    public static readonly DependencyProperty PreviousColorProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectedColorProperty

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

    Declaration
    public static readonly DependencyProperty SelectedColorProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    Properties

    PreviousColor

    Gets or sets the previous color that has been selected from the SfColorPicker control.

    Declaration
    public Color PreviousColor { get; set; }
    Property Value
    Type
    Windows.UI.Color

    SelectedColor

    Gets or sets a color from the SfColorPicker control that has been selected.

    Declaration
    public Color SelectedColor { get; set; }
    Property Value
    Type
    Windows.UI.Color
    Remarks

    The color can be selected from the ColorSelectionBox ColorSlider

    Methods

    Dispose()

    Called when control unloaded

    Declaration
    public void Dispose()

    Dispose(Boolean)

    called when control unloaded

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Indicates whether the control is disposed

    OnApplyTemplate()

    Initializes all the child elements of the SfColorPicker control.

    Declaration
    protected override void OnApplyTemplate()

    Events

    SelectedColorChanged

    Invokes an event when the SfColorPicker control's selected color has changed.

    Declaration
    public event DependencyPropertyChangedEventHandler SelectedColorChanged
    Event Type
    Type
    Windows.UI.Xaml.DependencyPropertyChangedEventHandler

    Implements

    System.IDisposable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)

    See Also

    ColorSelectionBox
    ColorSlider
    ColorTooltip
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved