Class MazeItem
The MazeItem class represents a stored maze
Implements
Inherited Members
Namespace: Maze.Maui.App.Models
Assembly: Maze.Maui.App.dll
Syntax
public class MazeItem : INotifyPropertyChanged
Constructors
MazeItem()
Constructor
Declaration
public MazeItem()
Properties
Definition
The maze definition
Declaration
[JsonPropertyName("definition")]
public Maze? Definition { get; set; }
Property Value
| Type | Description |
|---|---|
| Maze | Maze definition |
DimensionsSummary
Provides a textual summary of the maze's dimensions
Declaration
[JsonIgnore]
public string DimensionsSummary { get; }
Property Value
| Type | Description |
|---|---|
| string | Dimensions summary |
ID
The ID of the maze item within the store
Declaration
[JsonPropertyName("id")]
public string ID { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Maze ID |
Name
The name of the maze within the store
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Maze name |
Methods
Duplicate()
Duplicates the item
Declaration
public MazeItem Duplicate()
Returns
| Type | Description |
|---|---|
| MazeItem | Duplicated item |
OnPropertyChanged(string)
Triggers a property changed event on any subscribed handlers
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | Property name |
Events
PropertyChanged
Registered property changed event handler
Declaration
public event PropertyChangedEventHandler? PropertyChanged
Event Type
| Type | Description |
|---|---|
| PropertyChangedEventHandler | Event handler |