Class Canvas
Implements Canvas layout control
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class Canvas : Panel
Constructors
Canvas()
Initializes a new instance of the Canvas class.
Declaration
public Canvas()
Fields
BottomProperty
The bottom property
Declaration
public static readonly DependencyProperty BottomProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
LeftProperty
The left property
Declaration
public static readonly DependencyProperty LeftProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
RightProperty
The right property
Declaration
public static readonly DependencyProperty RightProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TopProperty
The top property
Declaration
public static readonly DependencyProperty TopProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Methods
ArrangeOverride(Size)
Arrange layout pass - overrider method for children
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Size | finalSize | The final size. |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Size |
Overrides
GetBottom(UIElement)
Gets the bottom.
Declaration
public static float GetBottom(UIElement element)
Parameters
Type | Name | Description |
---|---|---|
UIElement | element | The element. |
Returns
Type | Description |
---|---|
System.Single |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | element |
GetLeft(UIElement)
Gets the left.
Declaration
public static float GetLeft(UIElement element)
Parameters
Type | Name | Description |
---|---|---|
UIElement | element | The element. |
Returns
Type | Description |
---|---|
System.Single |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | element |
GetRight(UIElement)
Gets the right.
Declaration
public static float GetRight(UIElement element)
Parameters
Type | Name | Description |
---|---|---|
UIElement | element | The element. |
Returns
Type | Description |
---|---|
System.Single |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | element |
GetTop(UIElement)
Gets the top.
Declaration
public static float GetTop(UIElement element)
Parameters
Type | Name | Description |
---|---|---|
UIElement | element | The element. |
Returns
Type | Description |
---|---|
System.Single |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | element |
MeasureOverride(Size)
Measure layout pass
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Size | availableSize | available size for element |
Returns
Type | Description |
---|---|
EmptyKeys.UserInterface.Size |
Overrides
SetBottom(UIElement, Single)
Sets the bottom.
Declaration
public static void SetBottom(UIElement element, float length)
Parameters
Type | Name | Description |
---|---|---|
UIElement | element | The element. |
System.Single | length | The length. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | element |
SetLeft(UIElement, Single)
Sets the left.
Declaration
public static void SetLeft(UIElement element, float length)
Parameters
Type | Name | Description |
---|---|---|
UIElement | element | The element. |
System.Single | length | The length. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | element |
SetRight(UIElement, Single)
Sets the right.
Declaration
public static void SetRight(UIElement element, float length)
Parameters
Type | Name | Description |
---|---|---|
UIElement | element | The element. |
System.Single | length | The length. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | element |
SetTop(UIElement, Single)
Sets the top.
Declaration
public static void SetTop(UIElement element, float length)
Parameters
Type | Name | Description |
---|---|---|
UIElement | element | The element. |
System.Single | length | The length. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | element |