Adding the Classes

Learn how to add classes, components, and style sheets to the Blazor project.

We need to add a TaskPriority enum and a TaskItem class. We do this as follows:

  1. Right-click the KanbanBoard project and select the “Add, New Folder” option from the menu.
  2. Name the new folder Models.
  3. Right-click the Models folder and select the “Add, Class” option from the menu.
  4. Name the new class TaskPriority.
  5. Click the “Add” button.
  6. Replace the class with the following enum:

Get hands-on with 1200+ tech skills courses.