4 Impressive Features of .NET MAUI in .NET 7 | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (174).NET Core  (29).NET MAUI  (207)Angular  (109)ASP.NET  (51)ASP.NET Core  (82)ASP.NET MVC  (89)Azure  (41)Black Friday Deal  (1)Blazor  (215)BoldSign  (14)DocIO  (24)Essential JS 2  (107)Essential Studio  (200)File Formats  (66)Flutter  (133)JavaScript  (221)Microsoft  (119)PDF  (81)Python  (1)React  (100)Streamlit  (1)Succinctly series  (131)Syncfusion  (915)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (51)Windows Forms  (61)WinUI  (68)WPF  (159)Xamarin  (161)XlsIO  (36)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (147)Chart  (131)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (63)Development  (628)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (40)Extensions  (22)File Manager  (7)Gantt  (18)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (507)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (43)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (52)Security  (3)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (10)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (387)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (592)What's new  (332)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
4 Impressive Features of .NET MAUI in .NET 7

4 Impressive Features of .NET MAUI in .NET 7

The .NET Multi-platform App UI (.NET MAUI) is a cross-platform framework that helps developers create native mobile and desktop apps with C# and XAML. It’s the latest evolution of Xamarin.Forms. As you (probably) know, .NET MAUI is now available for .NET 7. I was really surprised to get this update so soon, with more features and performance improvements no less.

In this blog, I will take you through the new features of .NET MAUI for .NET 7.0 that excited me, and I recommend that you try them:

.NET MAUI context menu

You can now enjoy context menu support in .NET MAUI as part of the .NET 7 release. This feature is mainly aimed at desktop platforms. You can easily integrate it from the FlyoutBase class with any BindableObject (e.g., a label).

<Label Text="Right-click here to show Context Menu">
 <FlyoutBase.ContextFlyout>
  <MenuFlyout>
   <MenuFlyoutItem Text="Cut" />
   <MenuFlyoutItem Text="Copy"/>
   <MenuFlyoutItem Text="Paste"/>
  </MenuFlyout>
 </FlyoutBase.ContextFlyout>
</Label>
Context Menu Support for .NET MAUI in .NET 7.0
Context Menu Support for .NET MAUI in .NET 7.0

Easily build cross-platform mobile and desktop apps with the flexible and feature-rich controls of the Syncfusion .NET MAUI platform.

Tooltip support

Tooltip support was one of the most wanted features in .NET MAUI, and that feature is now included. With it, you can add a tooltip to any visual element by using the ToolTipProperties.Text (attached property).

Refer to the following code example.

<Label ToolTipProperties.Text="Hello!"
       Text="Hover on me to show tooltip">
</Label>
Tooltip Support for .NET MAUI in .NET 7.0
Tooltip Support for .NET MAUI in .NET 7.0

Pointer over visual state

Another essential feature added to the .NET MAUI platform for the .NET 7.0 release is the Pointer over visual state. This is one of the most required visual states in desktop platforms.

Refer to the following code example.

<Label Text="Hover on me to highlight">
 <VisualStateManager.VisualStateGroups>
  <VisualStateGroupList>
   <VisualStateGroup>
    <VisualState x:Name="PointerOver">
     <VisualState.Setters>
      <Setter Property="TextColor" Value="Red"/>
      <Setter Property="Background" Value="Yellow"/>
     </VisualState.Setters>
    </VisualState>
    <VisualState x:Name="Normal">
     <VisualState.Setters>
      <Setter Property="TextColor" Value="Black"/>
      <Setter Property="Background" Value="White"/>
     </VisualState.Setters>
    </VisualState>
   </VisualStateGroup>
  </VisualStateGroupList>
 </VisualStateManager.VisualStateGroups>
</Label>
Pointer Over Visual State for .NET MAUI in .NET 7.0
Pointer Over Visual State for .NET MAUI in .NET 7.0

To make it easy for developers to include Syncfusion .NET MAUI controls in their projects, we have shared some working ones.

Right-click gesture

Right-click gesture support is also now available in .NET MAUI. With the TapGestureRecognizer class, a new API called Buttons is added in which the Primary value refers to the left-click, which we already have, and the Secondary value refers to the right-click.

Refer to the following code example.

<Image x:Name="mouseClickImage" Source="mouseclick.png" WidthRequest="250" HeightRequest="250">
 <Image.GestureRecognizers>
  <TapGestureRecognizer Buttons="Primary" Tapped="TapGestureRecognizer_Tapped" />
  <TapGestureRecognizer Buttons="Secondary" Tapped="TapGestureRecognizer_Tapped_1"/>
 </Image.GestureRecognizers>
</Image>
Right-Click Gesture Support for .NET MAUI in .NET 7.0
Right-Click Gesture Support for .NET MAUI in .NET 7.0

Conclusion

Thanks for reading! I hope you enjoyed learning about these new features of .NET MAUI available in the .NET 7.0 release. Please give them a try. Also, we at Syncfusion have released a service pack for our Essential Studio 2022 Volume 3 release. We are excited to announce that with this service pack, our controls for .NET MAUI are now compatible with .NET 7.0.

Our .NET MAUI components are compatible with the following development environments:

  • Microsoft Visual Studio 2022 17.4.0 Preview 6.0 (.NET MAUI version 6.0.541) with .NET 7.0.
  • Microsoft Visual Studio 2022 17.4.0 Preview 6.0 (.NET MAUI version 6.0.541) with .NET 6.0.
  • Microsoft Visual Studio 2022 17.4.0 (.NET MAUI version 6.0.541) with .NET 6.0.
  • Visual Studio 2022 for Mac 17.4 Preview with .NET 6.0.

So now you can create projects targeting .NET 7.0 and reference our service pack NuGet packages either from NuGet Gallery or you can use the installer available from the Syncfusion website. Depending on your license, you can download the licensed installer or use our trial installer.

If you have any questions or comments, you can reach us through our support forumsupport portal, or feedback portal. We are always happy to assist you!

Test Flight
App Center Badge
Google Play Store Badge
Microsoft Badge
Github Store Badge

Related blogs

Tags:

Share this post:

Comments (1)

Are the Syncfustion .Net Maui Cartesian Charts controls compatible with a .Net 7 (Non MAUI) applications?

Comments are closed.

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed