WPF

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

    Show / Hide Table of Contents

    Class ColorSwatches

    Represents a set of swatches to allow the user to select colors from Syncfusion.UI.Xaml.Controls.Media.SfColorPalette

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

    Constructors

    ColorSwatches()

    Initializes a new instance of the ColorSwatches class.

    Declaration
    public ColorSwatches()

    Fields

    ColorItemMarginProperty

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

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

    ColorItemWidthProperty

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

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

    Properties

    ColorItemMargin

    Gets or sets the Margin of each ColorItem

    Declaration
    public Thickness ColorItemMargin { get; set; }
    Property Value
    Type Description
    System.Windows.Thickness

    ColorItemWidth

    Gets or sets the Width of each ColorItem

    Declaration
    public double ColorItemWidth { get; set; }
    Property Value
    Type Description
    System.Double

    Methods

    MeasureOverride(Size)

    Returns a value regarding the size of the swatches buttons.

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

    Available size for measuring

    Returns
    Type Description
    System.Windows.Size

    Returns a value regarding the size of the swatches buttons

    OnApplyTemplate()

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

    Declaration
    public override void OnApplyTemplate()

    See Also

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