Adding the Classes
Learn how to add classes, components, and style sheets to the Blazor project.
We'll cover the following
We need to add a TaskPriority
enum and a TaskItem
class. We do this as follows:
- Right-click the
KanbanBoard
project and select the “Add, New Folder” option from the menu. - Name the new folder
Models
. - Right-click the
Models
folder and select the “Add, Class” option from the menu. - Name the new class
TaskPriority
. - Click the “Add” button.
- Replace the class with the following enum:
Get hands-on with 1400+ tech skills courses.