WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ColorGroupItem

    Show / Hide Table of Contents

    Class ColorGroupItem

    A Class having a single color and its variants colors.

    Inheritance
    System.Object
    ColorGroupItem
    Implements
    System.IDisposable
    Namespace: Syncfusion.Windows.Tools.Controls
    Assembly: Syncfusion.Shared.Wpf.dll
    Syntax
    public class ColorGroupItem : Control, IDisposable

    Constructors

    ColorGroupItem()

    Creates the instance of ColorGroupItem control

    Declaration
    public ColorGroupItem()

    Fields

    BorderMarginProperty

    Identifies the BorderMargin dependency property.

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

    BorderThicknessProperty

    Identifies the BorderThick dependency property.

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

    ColorGroupItemsCollection

    A collection of ColorGroupItem

    Declaration
    public Collection<ColorGroupItem> ColorGroupItemsCollection
    Field Value
    Type Description
    System.Collections.ObjectModel.Collection<ColorGroupItem>

    ColorNameProperty

    Identifies the ColorName dependency property.

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

    ColorProperty

    Identifies the Color dependency property.

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

    HeightProperty

    Identifies the BorderHeight dependency property.

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

    IsSelectedProperty

    Identifies the IsSelected dependency property.

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

    ItemMarginProperty

    Identifies the ItemMargin dependency property.

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

    VariantsProperty

    Identifies the Variants dependency property.

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

    WidthProperty

    Identifies the BorderWidth dependency property.

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

    Properties

    BorderHeight

    Gets or sets the value of the BorderHeight dependency property.

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

    BorderMargin

    Gets or sets the value of the BorderMargin dependency property

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

    BorderThick

    Gets or sets the value of the BorderThickness dependency property

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

    BorderWidth

    Gets or sets the value of the BorderWidth dependency property.

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

    Color

    Gets or sets the value of the Color dependency property

    Declaration
    public Brush Color { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    ColorName

    Gets or sets the value of the ColorName dependency property.

    Declaration
    public string ColorName { get; set; }
    Property Value
    Type Description
    System.String

    IsSelected

    Gets or sets the value of the IsSelected dependency property

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

    ItemMargin

    Gets or sets the value of the ItemMargin dependency property

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

    Variants

    Gets or sets a value indicating whether the Variants dependency property.

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

    Type : bool

    Remarks

    Xaml

    <Syncfusion:ColorGroupItem Name="ColorGroupItem" Variants="true"/>

    C#

    ColorGroupItem ColorGroup=new ColorGroupItem();

    ColorGroup.Variants=true;

    Methods

    Dispose()

    Disposes all the resources.

    Declaration
    public void Dispose()

    IsVariantsChanged(DependencyPropertyChangedEventArgs)

    Called when IsVariantsChanged Event is raised

    Declaration
    protected virtual void IsVariantsChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property change details, such as old value and new value

    OnApplyTemplate()

    Applies the Template for the control

    Declaration
    public override void OnApplyTemplate()

    OnGotFocus(RoutedEventArgs)

    Called before the System.Windows.UIElement.GotFocus event occurs.

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

    The data for the event

    Implements

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