maui icon indicating copy to clipboard operation
maui copied to clipboard

Add New .NET MAUI Template with Syncfusion Toolkit Integration

Open PaulAndersonS opened this issue 1 year ago • 11 comments

This PR introduces a fully featured sample app as part of the new .NET MAUI project experience. When you choose to include the sample content in a new .NET MAUI project, you will find a fully functional to-do app that will bring balance to every .NET developer's life. You can create projects, and projects can have tasks. It uses controls from the new Syncfusion Toolkit for .NET MAUI to visualize the data. and to persist the data we use a local database based on SQLite. Furthermore, the sample app uses common patterns, like MVVM, and libraries that you will find in almost every .NET MAUI application.

new-template-flat template-windows

The libraries that are included in the sample content are:

  • Syncfusion Toolkit for .NET MAUI
  • .NET MAUI Community Toolkit
  • CommunityToolkit.Mvvm
  • SQLite

We believe that this sample app will give you a flying start when you begin working with .NET MAUI.

When creating a new .NET MAUI project from Visual Studio, you can check the box to include all this sample code and get a sense of what an actual .NET MAUI project looks like. Also, dotnet new maui from the command line will now include this content. If you wish to opt-out you can do dotnet new maui --empty or, when using Visual Studio, you can uncheck the box.

PaulAndersonS avatar Oct 21 '24 13:10 PaulAndersonS

Hey there @PaulAndersonS! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service agree

PaulAndersonS avatar Oct 21 '24 13:10 PaulAndersonS

Thanks @PaulAndersonS!

Everyone, please review and comment especially on the guidance and patterns this template provides.

Providing a more full featured sample in the templates is something we are often asked for by developers (often in their learning journey), while also retaining the empty template.

davidortinau avatar Oct 21 '24 13:10 davidortinau

I notice no screenshots of Windows usage. Is Windows supported for this template or is it exclusively for mobile platforms?

daltzctr avatar Oct 21 '24 20:10 daltzctr

I notice no screenshots of Windows usage. Is Windows supported for this template or is it exclusively for mobile platforms?

Windows is tested and supported. Someone could add some screenshots for completeness.

davidortinau avatar Oct 21 '24 23:10 davidortinau

I notice no screenshots of Windows usage. Is Windows supported for this template or is it exclusively for mobile platforms?

Windows is tested and supported. Someone could add some screenshots for completeness.

Added Windows screenshots

PaulAndersonS avatar Oct 22 '24 03:10 PaulAndersonS

I am surprised that a SyncFusion Toolkit integration is being waved through so easily into the official template (even though it is free).

Don't other commercial providers such as DevExpress or Telerik feel offended by this?

I don't care, but I just wanted to point it out.

baaaaif avatar Oct 22 '24 08:10 baaaaif

Really like this but when it's in place can it be that the current empty template is the default and this new template that is awesome becomes an opt in or check box option.

Be nice if the template had some simple tests for testing the VM's and UI this seems to be where most projects struggle that I see in teams I help out with.

CliffAgius avatar Oct 22 '24 09:10 CliffAgius

Really like this but when it's in place can it be that the current empty template is the default and this new template that is awesome becomes an opt in or check box option.

Be nice if the template had some simple tests for testing the VM's and UI this seems to be where most projects struggle that I see in teams I help out with.

I think it would be even better to have a check-box for each of the included toolkits, along with a '?' that links to the appropriate community landing page. For example,

  • [ ] Syncfusion Toolkit for .NET MAUI
  • [ ] .NET MAUI Community Toolkit
  • [ ] CommunityToolkit.Mvvm
  • [ ] SQLite

GeorgeLeithead avatar Oct 22 '24 13:10 GeorgeLeithead

I am surprised that a SyncFusion Toolkit integration is being waved through so easily into the official template (even though it is free).

Don't other commercial providers such as DevExpress or Telerik feel offended by this?

I don't care, but I just wanted to point it out.

We welcome all contributions, and there are various ways. This is just one of them.

More context for this PR: https://devblogs.microsoft.com/dotnet/dotnet-maui-welcomes-syncfusion-open-source-contributions/

davidortinau avatar Oct 22 '24 15:10 davidortinau

I think it would be even better to have a check-box for each of the included toolkits, along with a '?' that links to the appropriate community landing page. For example,

Yeh, that's something we could do in the future. There are other VS extensions that provide this kind of experience today.

davidortinau avatar Oct 22 '24 15:10 davidortinau

@pictos I tracked some of your comments here https://github.com/dotnet/maui/issues/25515

Because I think they are useful to have a longer discussion about a few of these

PureWeen avatar Oct 24 '24 19:10 PureWeen

This is great, but don't make it the default one. Maybe something like: dotnet new maui --sf and series of prompts to include additional options specific to Syncfusion.

akhanalcs avatar Oct 24 '24 22:10 akhanalcs

This is great, but don't make it the default one. Maybe something like: dotnet new maui --sf and series of prompts to include additional options specific to Syncfusion.

It's not the default one anymore

Unless you're seeing something I missed?

PureWeen avatar Oct 24 '24 22:10 PureWeen

https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10449958&view=results https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10450238&view=results https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10450239&view=results https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=10450241&view=results

PureWeen avatar Oct 25 '24 00:10 PureWeen