Class SelectionFrame
The SelectionFrame class represents a selection frame that is used to
border a rectangular or square region of cells. It consists of four
borders (with optional circular grips) that respond to pointer/pan events
for resizing the selected aread. In addition, the frame can run in
an animated dash mode e.g. for use on touch-only devices.
Inherited Members
Namespace: Maze.Maui.Controls.InteractiveGrid
Assembly: Maze.Maui.Controls.dll
Syntax
public class SelectionFrame
Constructors
SelectionFrame(Grid, bool)
Constructor
Declaration
public SelectionFrame(Grid parentGrid, bool enablePanSupport)
Parameters
| Type | Name | Description |
|---|---|---|
| Grid | parentGrid | Parent grid |
| bool | enablePanSupport | Enable pan support? |
Properties
BorderColor
Border color
Declaration
public Color BorderColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color | Border color |
BorderGripDiameter
Border grip diameter (in DIPs)
Declaration
public double BorderGripDiameter { get; set; }
Property Value
| Type | Description |
|---|---|
| double | Border grip diameter |
BorderWidth
Border width (in DIPs)
Declaration
public double BorderWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| double | Border width |
BottomRow
Bottom row of cell range
Declaration
public int BottomRow { get; }
Property Value
| Type | Description |
|---|---|
| int | Bottom row |
CellRange
Cell range
Declaration
public CellRange? CellRange { get; set; }
Property Value
| Type | Description |
|---|---|
| CellRange | Cell range |
ColumnCount
Number of columns in the cell range
Declaration
public int ColumnCount { get; }
Property Value
| Type | Description |
|---|---|
| int | Number of columns in cell range |
IsPanSupportEnabled
Indicates whether pan support is enabled
Declaration
public bool IsPanSupportEnabled { get; }
Property Value
| Type | Description |
|---|---|
| bool | Boolean |
LeftColumn
Left column of cell range
Declaration
public int LeftColumn { get; }
Property Value
| Type | Description |
|---|---|
| int | Left column |
ParentGrid
Parent grid
Declaration
public Grid ParentGrid { get; }
Property Value
| Type | Description |
|---|---|
| Grid | Parent grid |
RightColumn
Right column of cell range
Declaration
public int RightColumn { get; }
Property Value
| Type | Description |
|---|---|
| int | Right column |
RowCount
Number of rows in the cell range
Declaration
public int RowCount { get; }
Property Value
| Type | Description |
|---|---|
| int | Number of rows in cell range |
TopRow
Top row of cell range
Declaration
public int TopRow { get; }
Property Value
| Type | Description |
|---|---|
| int | Top row |
Methods
AddToGrid()
Adds the object's components to the grid
Declaration
public void AddToGrid()
EnableDashAnimation(bool)
Enables or disables dash animation
Declaration
public void EnableDashAnimation(bool enable)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | enable | Enable? |
RemoveFromGrid()
Removes the object's components from the grid
Declaration
public void RemoveFromGrid()
SetRange(CellRange, bool)
Modifies the range associated with the object
Declaration
public void SetRange(CellRange newRange, bool show)
Parameters
| Type | Name | Description |
|---|---|---|
| CellRange | newRange | New cell range |
| bool | show | Show? |
Show(bool)
Shows or hides the object
Declaration
public void Show(bool show)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | show | Show? |