Creating a Custom Controls Library for .NET MAUI

Shahid khan 20 Reputation points
2024-08-24T18:04:35.22+00:00

I want to create a controls library for .NET MAUI with over 30+ highly customizable controls. I am unsure whether to use Microsoft.Maui.Graphics or Templated/ContentView to create hand-drawn controls. I'm also concerned about the maintenance of Microsoft.Maui.Graphics since the Github repo is archived. Can someone guide me on how to create these controls with high performance and pixel-perfect visualization on all supported platforms?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,412 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 64,161 Reputation points
    2024-08-24T20:17:16.9033333+00:00

    Microsoft.Maui.Graphics Has been moved to the Maui repo. You don’t describe your controls, so you may need both. This will be a major project, and with 2 major mobile o/s releases a year, will require constant maintenance. As you will be supports phone and tablet layouts, it will be a challenge for pixel perfect. Plan on gaining access to several real mobile devices, and of course keep up with the lastest hardware releases. Don’t forget both touch and pencil input devices.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.