How to Get Started with .NET MAUI Blazor Application
- November 4, 2023
- Posted by: MainInstructor
- Category: .Net
![](https://i0.wp.com/allprowebdesigns.com/wp-content/uploads/2023/11/1699078968_maxresdefault.jpg?resize=840%2C430&ssl=1)
Video Title: How to Get Started with .NET MAUI Blazor Application
Hi everyone, welcome back. In this video I’ll show you through the process of getting started with a.net Maui Blazor application. Before proceeding, make sure that you have one of the following dot net SDKS installed in your machine and one of the IDs installed. After installing the necessary tools, launch Visual Studio 2022
And click Create a new project from the dashboard. From the list of project templates, I select the Net Maui Blazor application. Then provide the project name and location. I’ll proceed to create a project with the NET 7.0 framework. Now the default application is ready to use.
Let me show you the project structure in the mainpage dot XAML file. You’ll notice that the Blazor Webview component which is the root of the Blazor app to begin with, I need to install the required Syncfusion Blazor packages. In this tutorial I will show you Syncfusion Blazor charts with drop down list component.
So I open the Nugent package manager, search for Syncfusion Blazor charts and install it. So then I search for the Syncfusion Blazor drop downs package and install it. Also install the Syncfusion Blazor themes to host the script and CSS files. After completing the installation I navigate to the imports razor file.
Here I include the Syncfusion Blazor charts and drop downs namespaces allowing me to utilize the Blazor charts and drop down list components within the Pages folder. Next I open the Maui program file and add the Syncfusion Blazor namespace. Then I register the Syncfusion Blazor service inside the create Maui app method.
Then I host the CSS and script inside the index HTML file. Next I open the index razor file and add the charts component by replacing the default code within the tag define the chart primaries access tag to display the line series chart with the category axis.
Next I will move on to define the data source for the chart. So first I create the sales information class. Inside this class declare 2 properties Month and Sales Value. Then create a new list named Sales to store series values. Then I define the chart series collection tag with bound the
Data source property to sales and also bound the X name and Y name properties to Month and Sales value. Next I implement code for the drop down list component by creating the model class called Selection Types which has a Type property to display the chart series types in the list.
Then I create a list called select chart for the drop down options. This will provide users with the selection of different chart types to visualize the data in different ways. Then I define the private variable called chart with series type line and add the type property in chart series
Tag and bound to the created chart variable. This will enable us to dynamically update the chart type according to the user selection. If you want to know more about the Blazor charts, check the video link provided in the description below. Then I develop a method to change the chart type.
This method will update the chart type variable based on the user selection from the drop down. Finally, add the Syncfusion drop down list to an HTML table. If you want to know more about the Blazor drop down list component, check the video link provided in the description below.
Before running the sample, make sure you have enabled the Developer mode. This mode provides the necessary permissions and settings that allow you to efficiently debug and test your application during development. If you want to know more details about this, check out the documentation link provided in the description below.
Finally, in the Visual Studio toolbar, select the Windows Machine button. By clicking this button, you initiate the process of building and running your application on a Windows environment. Notice that the chart and the drop down in action. When I click the drop down, you can see different types of charts.
It is easy to switch between various chart types using the drop down. Next I will show you how to run the Maui Blazor application on Android. In the toolbar option, I simply change from a Windows machine to an Android emulator and press the Android emulator button.
Visual Studio will start to install the default Android SDK and Android emulator. Now I press the Create button to display the new device window. Once the Android emulator is created, close the Android Device Manager window before running the app. Enable hardware acceleration for a smooth and efficient experience in the Android emulator.
This optimization maximizes performance and ensures optimal emulator speed. To gain a comprehensive understanding of how to enable hardware acceleration, refer to the documentation link provided in the video’s description below. Once the hardware acceleration is enabled, press the Created Android Emulator button in the Visual Studio toolbar to build and run the app.
As you can see, the chart is rendered along with the drop down in the Android emulator of the Maui Blazor application. Now let me summarize the key takeaways from this video. I covered how to get started with NET Maui Blazor App to integrate Syncfusion Blazor components into a.net Maui Blazor App.
I also covered how to display the Blazor components on both the Windows machine and Android emulator. If you would like to see the working code of this example, you can download it from the GitHub link in the description below. I’ve also provided a link where you can see if you qualify for a
Free community license to use all our Blazor products. If you found this video useful, don’t forget to click the Like button and subscribe to our channel to watch more videos like this. Thanks for watching.
Video Keywords: .Net, Syncfusion,Develop,Software,Technology,Developer,Components,blazor app,blazor components,blazor maui,blazor charts,blazor dropdown list,maui,maui app,dotnetmaui blazor app,charts control,dropdown list control,charts component,dropdown list component
-
Sale!
Wireless WIFI Repeater Extender Amplifier Booster 300Mbps
$29.99$14.99 Add to cartWireless WIFI Repeater Extender Amplifier Booster 300Mbps
Categories: Electronics, Wi-Fi Router, Wireless Wi-Fi Extender Tags: 300Mbps, 802.11N, Amplifier, Booster, Extender, mobile wi-fi booster, Remote, WIFI, Wireless, Wireless WIFI, Wireless WIFI Repeater, Wireless WIFI Repeater Extender, Wireless WIFI Repeater Extender Amplifier, Wireless WIFI Repeater Extender Amplifier Booster, Wireless WIFI Repeater Extender Amplifier Booster 300Mbps$29.99$14.99 -
Sale!
Full RGB Light Design Gaming Headset Headphones with Mic
$24.99$14.99 Add to cartFull RGB Light Design Gaming Headset Headphones with Mic
Categories: Electronics, Gaming, Gaming Headsets Tags: Design, Full, Full RGB Light Design Gaming Headset, Full RGB Light Design Gaming Headset Headphones, Full RGB Light Design Gaming Headset Headphones with Mic, Gamer, Gaming, Gaming Headset Headphones, gaming headset wireless, Headphone, Headphones, Headset, Light, Mic, Package, RGB$24.99$14.99 -
Sale!
Wireless BlueTooth Multi-Device Keyboard Mouse Combo
$39.99$19.99 Add to cartWireless BlueTooth Multi-Device Keyboard Mouse Combo
Categories: Electronics, Gaming, Gaming Keyboards, Keyboard Mouse Combos Tags: Combo, Keyboard, keyboard mouse combos, Mouse, MultiDevice, Set, WireKeyboard Mouse Combo, Wireless, Wireless BlueTooth Keyboard Mouse Combo, Wireless BlueTooth Keyboard Mouse Combos, Wireless BlueTooth Multi-Device Keyboard Mouse Combo, Wireless BlueTooth Multi-Device Keyboard Mouse Combos$39.99$19.99 -
Sale!
High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
$199.99$139.99 Add to cartHigh Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar
Categories: Gaming, Gaming Chairs Tags: Adjustable, Chair, computer chairs, Desk, Executive, Gaming, Girl, Headrest, High, High Back Leather Executive Adjustable Swivel Gaming Chair, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest, High Back Leather Executive Adjustable Swivel Gaming Chair with Headrest and Lumbar, High Back Leather Executive Adjustable Swivel Gaming Chairs, Leather, Lumbar, Office, Racing, Swivel$199.99$139.99 -
Sale!
Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
$29.99$19.99 Select optionsProfessional LED Light Wired Gaming Headphones with Noise Cancelling Microphone
SKU: N/A Categories: Electronics, Gaming, Gaming Headsets Tags: Cancelling, Gaming, Gaming Headphones with Noise Cancelling Microphone, gaming headset, Headphones, Headset, LED, Light, Mic, Microphone, Noise, Professional, Professional LED Light Wired Gaming Headphones, Professional LED Light Wired Gaming Headphones with Noise Cancelling Microphone, Wired, Wired Gaming Headphones, Wired Gaming Headphones with Noise Cancelling Microphone$29.99$19.99 -
Sale!
Gaming Desk with LED Lights USB Power Outlets and Charging Ports
$349.99$249.99 Select optionsGaming Desk with LED Lights USB Power Outlets and Charging Ports
SKU: N/A Categories: Computer Desk, Gaming, Gaming Desk Tags: and Charging Ports, Charging, Desk, Desks, Gaming, gaming desk with led lights, Gaming Desks with LED Lights, Home, LED, Lights, Monitor, Office, Outlets, Port, Power, Room, Stand, USB, USB Power Outlets, White, Workstation$349.99$249.99 -
Sale!
Wired Mixed Backlit Anti-Ghosting Gaming Keyboard
$99.99$79.99 Add to cartWired Mixed Backlit Anti-Ghosting Gaming Keyboard
Categories: Electronics, Gaming, Gaming Keyboards Tags: Antighosting, Backlit, Blue, brown, Gaming, Gaming Keyboard, gaming keyboards, gaming keyboards and mouse, Keyboard, Laptop, Switch, Wired, Wired Mixed Backlit Anti-Ghosting Gaming Keyboard, Wired Mixed Backlit Anti-Ghosting Gaming Keyboards, Wired Mixed Backlit Gaming Keyboard$99.99$79.99 -
Sale!
Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
$119.99$59.99 Add to cartWireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset
Categories: Electronics, Gaming, Gaming Headsets Tags: 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, ANC, Audio, Bluetooth, Cancellation, Ear, Earphone, gaming headset, Headphones, Headset, Hi-Res Over the Ear Headphones Headset, HiRes, Noise, Wireless, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Headphones, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headset, Wireless Bluetooth 5.3 ANC Noise Cancellation Hi-Res Over the Ear Headphones Headsets$119.99$59.99 -
Sale!
Wired Sports Gaming Headset Earbuds with Microphone
$19.99$9.99 Select optionsWired Sports Gaming Headset Earbuds with Microphone
SKU: N/A Categories: Gaming, Gaming Headsets Tags: Accessories, Earbud, Earphone, Earphones, Gaming, gaming headset with microphone, Headphones, Headset, IOS, Microphone, Sports, Wired, Wired Sports Gaming Headset Earbuds, Wired Sports Gaming Headset Earbuds with Microphone, Wired Sports Headset Earbuds$19.99$9.99 -
Sale!
150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
$49.99$29.99 Add to cart150W Universal Multi USB Fast Charger 16 Port MAX Charging Station
Categories: Charging Stations, Electronics Tags: 150W, 150W Charging Station, 150W Universal Multi USB Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Station, 150W Universal Multi USB Fast Charger 16 Port MAX Charging Stations, 150W Universal Multi USB MAX Charging Station, 16 Port MAX Charging Station, 3.5A, Charger, Charging, Fast, laptop charging stations, Max, Multi, Port, Stand, Station, Universal, USB$49.99$29.99