Class MoreColorsWindow
ChildWindow more More Color Options
Inheritance
System.Object
MoreColorsWindow
Implements
System.Windows.Markup.IComponentConnector
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Shared.Wpf.dll
Syntax
public class MoreColorsWindow : Window, IComponentConnector
Constructors
MoreColorsWindow()
Creates the instance of ChildWindow class
Declaration
public MoreColorsWindow()
Fields
morecolorcollection
A collection of PolygonItem Class
Declaration
public ObservableCollection<PolygonItem> morecolorcollection
Field Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<PolygonItem> |
palette
An instance of ColorPickerPalette Class
Declaration
public ColorPickerPalette palette
Field Value
Type |
---|
ColorPickerPalette |
Methods
CalculatePoints(Double, Double)
Method used to calculate the other 5 coordinates of polygon when one one coordinate is given
Declaration
public PointCollection CalculatePoints(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | x coordinate |
System.Double | y | y coordinate |
Returns
Type | Description |
---|---|
System.Windows.Media.PointCollection | Returns points as point collection |
CalculatePoints(Double, Double, Double)
Method used to calculate the other 5 coordinates of polygon when one one coordinate is given
Declaration
public PointCollection CalculatePoints(double x, double y, double side)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | x coordinate |
System.Double | y | y coordinate |
System.Double | side | The side lenth of the polygon |
Returns
Type | Description |
---|---|
System.Windows.Media.PointCollection | Returns points as point collection |
InitializeComponent()
InitializeComponent
Declaration
public void InitializeComponent()
OnClosed(EventArgs)
Close MetroColors window
Declaration
protected override void OnClosed(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
Implements
System.Windows.Markup.IComponentConnector