Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (161).NET Core  (29).NET MAUI  (63)Angular  (74)ASP.NET  (50)ASP.NET Core  (79)ASP.NET MVC  (88)Azure  (36)Blazor  (152)DocIO  (23)Essential JS 2  (85)Essential Studio  (172)File Formats  (28)Flutter  (123)JavaScript  (186)Microsoft  (113)PDF  (67)React  (62)Succinctly series  (128)Syncfusion  (609)TypeScript  (31)Uno Platform  (3)UWP  (4)Vue  (39)Webinar  (35)Windows Forms  (59)WinUI  (52)WPF  (138)Xamarin  (155)XlsIO  (25)Other CategoriesBarcode  (5)BI  (29)Bold BI  (5)Build conference  (6)Business intelligence  (54)Button  (4)C#  (119)Chart  (57)Cloud  (12)Company  (445)Dashboard  (8)Data Science  (3)Data Validation  (6)DataGrid  (55)Development  (396)Doc  (7)DockingManager  (1)eBook  (96)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (23)Extensions  (18)File Manager  (4)Gantt  (11)Gauge  (11)Git  (4)Grid  (28)HTML  (10)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (311)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (30)Performance  (9)PHP  (1)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (7)Road Map  (10)Scheduler  (36)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (22)Solution Services  (3)Spreadsheet  (11)SQL  (8)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (11)Tips and Tricks  (92)UI  (224)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (23)Visual Studio Code  (17)Web  (373)What's new  (213)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Share on twitter
Share on facebook
Share on linkedin
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!

Related blogs

Tags:

Share this post:

Share on twitter
Share on facebook
Share on linkedin
Popular Now

Be the first to get updates

Subscribe RSS feed
Scroll To Top