Prime 5 New Features for Effective Desktop App Advancement
Very last thirty day period Microsoft released the overview variety of .Web Dev site write-up exhibiting the 5 .Net MAUI Functions for Setting up Excellent Desktop Applications.
In the initial website put up, James Montemagno, the Principal Lead Program Manager, .Internet Local community, highlighted the best five characteristics of .Web MAUI for desktop applications. These features involve multi-window guidance, a best-level menu bar, context menus, tooltips, and pointer gestures. They can support enrich the person practical experience and get gain of the hardware and functioning method of desktop platforms.
The .Internet MAUI framework has been through a major alter with the Window
now serving as the base foundation for content material show. An Software
makes a default Window that instantly shows content on operating. With the new CreateWindow
technique in the Application course, any new Window can be established. When working applications on a desktop or pill, the larger sized screen size can be made use of to exhibit far more information and facts by creating further windows as an alternative of navigating to unique web pages.
Developers now have the alternative to open and close the new window with the constructed-in API:
var weatherDetails = new Window(new WeatherDetailsPage())
Software.Recent.OpenWindow(weatherDetails)
// Close a precise window
Application.Present-day.CloseWindow(weatherDetails)
// Near the energetic window
Application.Present.CloseWindow(GetParentWindow())
Microsoft Learn supplies documentation items about the configuration of multi-window in .Web MAUI.
In desktop apps, 1 of the major features is the menu bar, which is generally integrated into the software on Windows or in the process menu bar on Mac.
.Net MAUI simplifies the method of integrating a menu bar by requiring just a several traces of code. In addition, this aspect enables customers to obtain the menu on an iPad utilizing a keyboard.

(Graphic resource: Microsoft)
Each and every ContentPage
consists of a MenuBarItems
selection, which may perhaps consist of menus at various levels. Menu merchandise can be established instantly in XAML or through C#, supplying the menus a dynamic come to feel. The menu items have the ability to be enabled or disabled and comprise separators, sub-menus, and icons on Home windows. In addition, they can be certain to a Command
or have a Clicked
function. To find out much more about the menu bar, it is advised to assessment the documentation.
Context menus are applied in.Web MAUI apps when you want to supply customers with extra decisions when they right-simply click an ingredient. The context menu is built applying a equivalent API to the menu bar, but it is displayed on a specific management relying on the condition. Very similar to the menu items, context menus can also bind to a Command for the function, it can incorporate icons, sub-menus, and dividers.
The case in point under demonstrates the utilization of the context menu on Editor
control.
Tooltips can provide further context when desktop buyers hover above handle in an software using the ToolTipProperties.Textual content
connected property. This can be established in XAML or programmatically for any manage.
About desktop users and their external units, .Net MAUI also has new gesture recognizers especially for mouse pointers that can understand pointer events when interacting with a command, and provide the pointer’s position relative to the regulate. This enables builders to accomplish precise steps in reaction to the pointer’s movements.
Far more about these and other additional functions can be uncovered by browsing the formal documentation presented by Microsoft about .Net MAUI growth.