Using ComponentOne Template
In This Topic
ComponentOne MAUI Edition provides predefined project templates to create and configure MAUI applications in Visual Studio. These project templates get registered in Visual Studio after the ComponentOne Studio installer is run to install MAUI Edition. ComponentOne project template provides several benefits over Visual Studio templates as it automatically adds the required resources to the project as listed below:
- Adds required MAUI Edition references to the project.
- Registers all the ComponentOne MAUI controls to the project.
- Adds a sample to see the related control or component in action.
Complete the following steps to create a MAUI project in Visual Studio using ComponentOne project templates and use the ComponentOne MAUI controls. First, you need to make sure to check the System Requirements before proceeding.
- Open Visual Studio and select Create a new project from the Get started pane.
- In the Create a new project window, type C1 in the search bar to get the list of all the installed C1 templates and select MAUI from the project drop-down.
- Select the MAUI Grid App 7.0 (C#) project type and click Next.
- In the Configure your new project window, provide name of the project you want to create in the Project name field, say Maui_App, and location for the project in the Location field. We have kept the default Project name, GridApp1. Then, click Create.
Observe that a new .NET MAUI app is created with the following dependencies.
- C1.Maui.Calendar
- C1.Maui.Core
- C1.Maui.Grid
- C1.Maui.GridControl
- C1.Maui.Input