Class ColorSwatches
Represents a set of swatches to allow the user to select colors from SfColorPalette
Inheritance
System.Object
ColorSwatches
Implements
System.IDisposable
Namespace: Syncfusion.UI.Xaml.Controls.Media
Assembly: Syncfusion.SfColorPickers.UWP.dll
Syntax
public class ColorSwatches : Control, IDisposable
Constructors
ColorSwatches()
Initializes a new instance of the ColorSwatches class.
Declaration
public ColorSwatches()
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 control is disposed |
MeasureOverride(Size)
Returns a value regarding the size of the swatches buttons.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.Size | availableSize | Available size for measuring |
Returns
Type | Description |
---|---|
Windows.Foundation.Size | Returns a value regarding the size of the swatches buttons |
OnApplyTemplate()
Initializes all the child elements of the ColorSwatches control.
Declaration
protected override void OnApplyTemplate()
Implements
System.IDisposable