WPF

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

    Show / Hide Table of Contents

    Class ColorGroup

    A control having a set of ColorGroupItems

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

    Constructors

    ColorGroup()

    Creates the instance of ColorGroup control

    Declaration
    public ColorGroup()

    Fields

    cgHeaderName

    Declaration
    public Rectangle cgHeaderName
    Field Value
    Type Description
    System.Windows.Shapes.Rectangle

    cgHeaderTextBox

    Declaration
    public TextBlock cgHeaderTextBox
    Field Value
    Type Description
    System.Windows.Controls.TextBlock

    colorpicker

    An instance of ColorPickerPalette class

    Declaration
    public ColorPickerPalette colorpicker
    Field Value
    Type Description
    ColorPickerPalette

    DataSourceProperty

    Identifies the DataSource dependency property

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

    HeaderNameProperty

    Identifies the HeaderName dependency property

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

    HeaderVisibilityProperty

    Identifies the HeaderVisibilityProperty dependency property

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

    NameProperty

    Identifies the ColorName dependency property

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

    PanelVisibilityProperty

    Identifies the PanelVisibility dependency property

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

    ThemeHeaderBackGroundProperty

    Identifies the ThemeHeaderBackGround dependency property.

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

    ThemeHeaderForeGroundProperty

    Identifies the ThemeHeaderForeGround dependency property.

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

    Properties

    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

    DataSource

    Gets or sets the value of the DataSource dependency property

    Declaration
    public ObservableCollection<ColorGroupItem> DataSource { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<ColorGroupItem>

    HeaderName

    Gets or sets the value of the HeaderName dependency property

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

    HeaderVisibility

    Gets or sets the header visibility.

    Declaration
    public Visibility HeaderVisibility { get; set; }
    Property Value
    Type Description
    System.Windows.Visibility

    The header visibility.

    PanelVisibility

    Gets or sets the value of the PanelVisibility dependency property.

    Declaration
    public Visibility PanelVisibility { get; set; }
    Property Value
    Type Description
    System.Windows.Visibility

    Type : Visibility

    Remarks

    Xaml

    <Syncfusion:ColorPickerPalette Name="ColorPickerPalette" ThemePanelVisibility="Visibility.Visible"/>

    C#

    ColorGroup ColGroup=new ColorGroup();

    ColGroup.PanelVisibility=Visibility.Visible;

    ThemeHeaderBackGround

    Gets or sets the value of the ThemeBackGround dependency property.

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

    ThemeHeaderForeGround

    Gets or sets the value of the ThemeForeGround dependency property.

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

    Methods

    cgHeaderName_MouseLeftButtonDown(Object, MouseEventArgs)

    Declaration
    public void cgHeaderName_MouseLeftButtonDown(object sender, MouseEventArgs args)
    Parameters
    Type Name Description
    System.Object sender
    System.Windows.Input.MouseEventArgs args

    Dispose()

    Disposes all the resources.

    Declaration
    public void Dispose()

    IsColorChanged(DependencyPropertyChangedEventArgs)

    Method called when IsColorChanged event is raised

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

    Property change details, such as old value and new value

    IsHeaderChanged(DependencyPropertyChangedEventArgs)

    Method called when IsHeaderChanged event is raised

    Declaration
    protected virtual void IsHeaderChanged(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()

    Implements

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