.NET MAUI is HERE! 3 NEW Features that will blow your mind š¤Æ
source link: https://dev.to/dotnetsafer/net-maui-is-here-3-new-features-that-will-blow-your-mind-ngp
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Posted on Oct 20
.NET MAUI is HERE! 3 NEW Features that will blow your mind š¤Æ
.NET MAUI is a framework for .NET Core and ASP.NET Core MVC applications which can be used in cross-platform development and in building complex web applications.
.NET MAUI was created by Microsoft to take care of all the things that developers usually need to do themselves, such as managing HTTP requests, setting up routing logic, handling errors and more. So that they can focus on whatās important: building an application that does something useful for their customers.
In the latest preview, Microsoft showed three new features about .NET MAUI that will blow your mind š
āØUpdated Controls
Microsoft has changed the implementations of numerous controls in this new .NET MAUI version, which is a significant improvement. Letās look at the most important ones.
š¦ BoxView
BoxView
is a basic rectangle with a given width, height, and color. It could be used for BoxView
decorating, basic graphics, and touch interaction with the user.
šIndicatorView
The IndicatorView
is a control that shows indications in a CarrouselView
that reflect the number of items and the current position:
š· ImageButton
The ImageButton
view has the ability to combine the Button and Image views to produce a button with an image as its content. To command the program to do a certain activity, the user pushes the ImageButton
with their finger or clicks it with their mouse. The ImageButton
view, unlike the Button view, has no idea of text and text appearance.
š» WebView
WebView
renders any online or embedded HTML material using the platformās native browser control; suitable for displaying markup that is more complicated than the subset of HTML supported by Label
.
š² Shadows, corners, and borders
Here we have Microsoft.Maui.Graphics
library, that offers an +uniform UI* drawing API based on native graphics engines, allowing us to quickly add borders, corner rendering, and gorgeous shadows to nearly any .NET MAUI layout or control.
Microsoft presents a new Border
control. It can be wrapped around any layout or control to offer borders and independent corner control. This controls are available in WPF, UWP, Silverlight, and the most recent Windows App SDK styles.
In this Microsoft example, we can see how they added the stroke and rounded the top-left and bottom-right corners by wrapping a border checks around the counter label this template š
<Border
Grid.Row="2"
Padding="16,8"
Stroke="{StaticResource PrimaryBrush}"
Background="#2B0B98"
StrokeThickness="4"
HorizontalOptions="Center">
<Border.StrokeShape>
<RoundRectangle CornerRadius="40,0,0,40"/>
</Border.StrokeShape>
<Label
Text=".NET MAUI Preview: 9"
FontSize="18"
FontAttributes="Bold"
TextColor="White"
x:Name="CounterLabel" />
</Border>
The specified shapeās corner radius accepts a Thickness
type value, allowing separate control of each of the rectangleās +four corners:* bottom-left, bottom-right, top-left and top-right.
The border control creates a wraparound view element around a single piece of content, allowing you to customize the background color and padding. There are several more attributes that may be used to modify the borderās stroke, including:
StrokeLineCap: is a form that appears at the end of a line.
StrokeDashOffset: is the distance between the dots in the dash pattern.
StrokeMiterLimit: set the miter length ratio to half of the stroke thickness.
StrokeLineJoin: a type of vertices join.
StrokeDashArray: a dash and gap pattern in the stroke.
Are you ready to give your user interface some depth? Any layout or control, including pictures and objects, can be given with Shadow
š
<Image>
<Image.Shadow>
<Shadow Brush="#000000"
Offset="20,20"
Radius="40"
Opacity="0.8"/>
</Image.Shadow>
</Image>
This is the result š
š Android Quick Start
Ahead-of-time (AOT) compilation improves the speed with which your Android applications can code start. If youāre trying to stay below the wifi installation bar, full AOT may make your application artifacts larger than you want.
Startup tracing is the solution in this case. We may balance performance and space by partially AOTāing only the sections of your program that are run at startup.
The following are the results of device testing on the Pixel 5:
š° Ecosystem Controls
DevExpress, Syncfusion, and Telerik have all recently released new sets of controls for.NET MAUI that take use of Microsoftās strong graphics capabilities. Maui.Graphics.
š Do you want a gift?
Just for entering this article and making it this far, Iām GIVING you a GIFT of a GUIDE to keeping your .NET applications secure š.
The ONLY thing you have to do is enter your email to receive it for FREEš¤.
šØThis wonāt be around forever.
To maintain exclusivity, Iāll be editing the article soon and there will no longer be a gift. So HURRY UP and get your guide to becoming a .NET security expert! ššš
Recommend
-
8
Vivaldi browser has just received a major new update Google Chrome is the worldās number one desktop browser and Microsoft Edge is offered as the default option on Windows 10, but neither have the j...
-
9
10 data science job statistics that will blow your mind ...
-
2
Rugged DIN-rail PC promises not to blow up in your face Jul 29, 2021 ā by Eric Brown ā 157 views
-
3
Yahya Abdul-Mateen II Is Ready to Blow Your MindThe actor isnāt just the new Morpheus. Heās the future of Hollywood.Photograph: TSERare is th...
-
5
Microsoft recently released C# 10 andĀ .NET 6 to the world, but they aren't done yet! TheĀ .NET team has already started working on features that will be included in C# 11 andĀ .NET 7. In this article, we'll tak...
-
2
Dyson's noise-canceling headphones blow filtered air at your faceBelieve it or not, the Dyson Zone was designed pre-pandemic. Dyson just unveiled its first wearable product andā¦ itās not what you think it i...
-
6
Breach Disclosure Blow-by-Blow: Here's Why It's so Hard 15 April 2022 For many years now, I've lamented about how much of my time is spent attempting to disclose data breaches to impacted companies...
-
4
Don't expect the Pixel Watch to blow your mind when it comes to battery life By Will Sattelberg Published 3 hours a...
-
3
How to Remove a Data Disk from an Azure VM (How not to blow your leg off) ā The SQL Herald
-
3
WhatsApp is set to release two new features that will blow your mind
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK