Class FrameBorder
The FrameBorder class represents a frame border that forms part of a selection frame, optionally
including a circular grip at one end that can be used to resize it
Inherited Members
Namespace: Maze.Maui.Controls.InteractiveGrid
Assembly: Maze.Maui.Controls.dll
Syntax
public class FrameBorder
Constructors
FrameBorder(SelectionFrame, FrameEdge, Color, double)
Constructor
Declaration
public FrameBorder(SelectionFrame parentFrame, FrameBorder.FrameEdge edge, Color color, double gripDiameter)
Parameters
| Type | Name | Description |
|---|---|---|
| SelectionFrame | parentFrame | Parent selection frame |
| FrameBorder.FrameEdge | edge | The edge within the selection frame |
| Color | color | Color |
| double | gripDiameter | Grip diameter (in DIPs) |
Properties
Color
The color associated with the object
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color | Color |
Corner
The frame corner associated with the object
Declaration
public FrameBorder.FrameCorner Corner { get; }
Property Value
| Type | Description |
|---|---|
| FrameBorder.FrameCorner | Frame corner |
Edge
The frame edge associated with the object
Declaration
public FrameBorder.FrameEdge Edge { get; set; }
Property Value
| Type | Description |
|---|---|
| FrameBorder.FrameEdge | Frame edge |
EdgeThickness
The thickness of the frame edge (in DIPs)
Declaration
public double EdgeThickness { get; set; }
Property Value
| Type | Description |
|---|---|
| double | Edge thickness |
GripDiameter
The diameter of the frame's grip (in DIPs)
Declaration
public double GripDiameter { get; set; }
Property Value
| Type | Description |
|---|---|
| double | Grip diameter |
IsBottomCorner
Returns whether the object is associated with a bottom corner
Declaration
public bool IsBottomCorner { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean |
IsHorizontalEdge
Returns whether the object's edge is horizontal
Declaration
public bool IsHorizontalEdge { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean |
IsLeftCorner
Returns whether the object is associated with a left corner
Declaration
public bool IsLeftCorner { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean |
IsRightCorner
Returns whether the object is associated with a right corner
Declaration
public bool IsRightCorner { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean |
IsTopCorner
Returns whether the object is associated with a top corner
Declaration
public bool IsTopCorner { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean |
IsVerticalEdge
Returns whether the object's edge is vertical
Declaration
public bool IsVerticalEdge { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean |
ParentFrame
Returns the objects's parent selection frame
Declaration
public SelectionFrame ParentFrame { get; }
Property Value
| Type | Description |
|---|---|
| SelectionFrame | Selection frame |
ParentGrid
Returns the object's parent grid
Declaration
public Grid ParentGrid { get; }
Property Value
| Type | Description |
|---|---|
| Grid | Parent grid |
StartColumn
Returns the start column associated with the object
Declaration
public int StartColumn { get; }
Property Value
| Type | Description |
|---|---|
| int | Start column |
StartRow
Returns the start row associated with the object
Declaration
public int StartRow { get; }
Property Value
| Type | Description |
|---|---|
| int | Start row |
Methods
AddToGrid()
Adds the object's components to the parent grid
Declaration
public void AddToGrid()
EnableDashAnimation(bool)
Enables or disables dash animation for the object
Declaration
public void EnableDashAnimation(bool enable)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | enable | Enable animation? |
RemoveFromGrid()
Removes the object's components from the parent grid
Declaration
public void RemoveFromGrid()
SetPosition(int, int, double, double, Thickness)
Sets the display position and margin for the object
Declaration
public void SetPosition(int row, int column, double width, double height, Thickness margin)
Parameters
| Type | Name | Description |
|---|---|---|
| int | row | Display row |
| int | column | Display column |
| double | width | Display width (in DIPs) |
| double | height | Display height (in DIPs) |
| Thickness | margin | Margin (in DIPs) |
Show(bool)
Shows or hides the object
Declaration
public void Show(bool show)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | show | Flaf indicating whether to show the object |
UpdateDashAnimation()
Updates the dash animation for the object to the next animation display index
Declaration
public void UpdateDashAnimation()