The theme I use is called “dracula”. - draculatheme.com/ . I got a little obsessed with it at one point and installed it everywhere, even my terminal lol.
@@ProgrammingWithChris Doing the same when I choose a new theme. 😁 Would be great to have the ability to set a system-wide theme in Windows for all supporting programs... one day...
Woot another new channel, Hope all goes well! -- Thanks for showing this. reminds me of my VB3 days where I wrote some custom controls (VBX files) for making screens look like LARS interfaces -- the star trek buttons, lines you see. Might have to give it a coat of paint now and try do them in MAUI :) -- Just watched your custom control video with the rounded button.
I'd be interested in learning how to create gauges and meters, both linier and round that can be reused like the old custom controls. So one time you might use the liner gauge as a vertical thermometer and another time as a horizontal VU meter. You'd need ranges, tick marks, and etc.
Wow, yeah, that’s a pretty good use case for one of these. I might give it a go over the weekend and see how fancy I can get with it, and post the code or something. Nice idea!
Thanks for watching! Let me know if you write anything cool with Maui Graphics, I'd love to see some examples of what other people are doing with it! 🕘Timestamps: 00:00 - Video Start 00:09 - Intro To Maui Graphics 01:20 - How to use Maui Graphics In Your Xaml 03:02 - The Drawable Class in Maui Graphics 05:06 - The Math Behind Drawing The Clock With Graphics
Because you use Invalidate(), dirtyRect will always refer to the entire area of your app to be painted. But, generally speaking, the dirtyRect could reflect a smaller area, say, if a portion of your app got covered then revealed. You can use this to optimize the amount of drawing you do if you realize you only need to populate the area specify by your dirtyRect. You definitely do not want to compute a new center point / radius based on dirty rect.
@@ProgrammingWithChris I know that a few of us out here are looking for instruction on integration of those native libraries and so, I would really appreciate it. Thank you.
As soon as i saw the draw method i got java flashbacks 😂 but nice to know this is in maui last time with graphics coding with c# was with my windows forms application. It was a pain but looked pretty good at the end i think
Would it make more sense to have multiple drawables so that you aren't re-drawing the entire clock, minute hand, hour hand, etc. every second when only the second hand has changed? Or does that introduce more problems, like getting everything to line up?
Yeah, that's a good question. I know from my experience, redrawing these things isn't as computationally expensive as it sounds, especially in as long of a frequency as 1 second. So in this case I'd just do the whole object each time, makes things easier on the design part (as you mentioned) In terms of the performance difference between the two, I think that would just depend on the graphics engine that Microsoft.Maui.Graphics is using (which I think you can even tell it to use a specific one, like SkiaSharp). And honestly most of those are so fast that they're done drawing in just a few milliseconds, at most. Then obviously there is the difference in the code processing as well, so if you need to process 1million rows of data to draw your object each time, then yeah, that'd be a case where you'd want to break it up if possible, etc. Hope that makes sense.