menu

WPF

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

    Show / Hide Table of Contents

    Class SwatchesBase

    Represents a base class for defining the swatches properties.

    Inheritance
    System.Object
    SwatchesBase
    Apex
    Hardcover
    Metro
    Module
    Office
    Paper
    Pushpin
    Solstice
    Urban
    Waveform
    Namespace: Syncfusion.Windows.Controls.Media
    Assembly: Syncfusion.SfColorPalette.Wpf.dll
    Syntax
    public class SwatchesBase : Control

    Constructors

    SwatchesBase()

    Declaration
    public SwatchesBase()

    Fields

    ColorItemMarginProperty

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

    Declaration
    public static readonly DependencyProperty ColorItemMarginProperty
    Field Value
    Type
    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
    System.Windows.DependencyProperty

    Properties

    ColorItemMargin

    Gets or sets the ColorItemMargin

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

    ColorItemWidth

    Gets or sets the ColorItemWidth

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

    Methods

    MeasureOverride(Size)

    Measures the size for overriding

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

    available size

    Returns
    Type Description
    System.Windows.Size

    returns the size

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