Manage pages
Create a new page
- To add a new page, click on the + button next to the project name in the Explorer
- Select New Page… from the dropdown.
- In the new page dialog select a page type and click Next
- Enter page Name and configure the page. Configuration options vary accross different page types.
- Common configuration options:
- Overwrite existing file - select whether to overwrite a file that already exist in the application. Changes made to this file will be lost.
- Include in main navigation - select whether to add the page to the navigation UI of the application.
- Use partial classes (.razor.cs) - decide if partial classes should be used to separate the code from the UI.
- Common configuration options:
- Click Finish to create your new page
The page is added to the Pages directory.
Hint
Pages can be added to arbitrary locations. Right-click on the desired folder in the Explorer and select New Page … from the context menu.
Reveal in File Explorer / Finder
To explore pages with File Explorer (Windows) or Finder (macOS), right-click on the desired page and select Reveal in Explorer… (Windows) / Reveal in Finder… (macOS).
Delete a page
To delete a page:
- Right-click on the page in the Explorer and select Delete from the context menu.
- Confirm file delete