.NET MAUI Release Candidate – Ready for cross-platform app development

David Ortinau

Today we are excited to announce the availability of .NET Multi-platform App UI (.NET MAUI) Release Candidate. The SDK is now API complete, ready for libraries to update and make ready for GA (general availability) compatibility. As with other .NET release candidates, this release is covered by a “go live” support policy, meaning .NET MAUI is supported by Microsoft for your production apps.

Image dotnet podcasts

Get Started Today

To acquire .NET MAUI RC1, install or update Visual Studio 2022 Preview to version 17.2 Preview 3. In the installer confirm .NET MAUI (preview) is checked under the “Mobile Development with .NET workload”.

To use .NET MAUI RC1 on Mac, follow the command line instructions on the wiki. Support for .NET MAUI in Visual Studio 2022 for Mac will ship formally in a future preview.

Release Candidate release notes are on GitHub. For additional information about getting started with .NET MAUI, refer to our documentation, and the migration tip sheet for a list of changes to adopt when upgrading projects.

Jump start your journey with the .NET Podcasts app (pictured above) which runs on Android, iOS, macOS, and Windows, and showcases both native app UI as well as Blazor Hybrid. Looking for a full workshop on how to get started with .NET MAUI? We have you covered with our newly released .NET MAUI workshop where you will build an app from start to finish and integrate native features.

What about Xamarin support? The Xamarin Support Policy is still in effect which covers those products for 2 years after initial release. The last release was November of 2021, and so support will continue through November 2023.

What’s in the .NET MAUI release candidate?

As a multi-platform app building framework, .NET MAUI leverages platform SDKs for Android, iOS, macOS, and Windows. These foundational pieces are included in this release, and you can use them directly with C# in addition to maximizing your code sharing and productivity with .NET MAUI.

base theme for all controls

.NET MAUI ships with 40+ layouts and controls optimized for building adaptive UIs across both desktop and mobile platforms. You can also incorporate Blazor components or entire Blazor applications to distribute the same experiences on desktop and mobile as you may today on web.

How does this compare to Xamarin.Forms? You get every UI control that ships with Xamarin.Forms, plus new controls such as BlazorWebView, Border, GraphicsView, MenuBar, Shadow, and Window.

Layouts CarouselView Line Stepper
AbsoluteLayout Checkbox ListView SwipeView
BindableLayout CollectionView Path Switch
FlexLayout ContentView Picker TableView
GridLayout DatePicker Polygon TimePicker
HorizontalStackLayout Editor Polyline WebView
StackLayout Ellipse ProgressBar Pages
VerticalStackLayout Entry RadioButton ContentPage
Views Frame Rectangle FlyoutPage
ActivityIndicator GraphicsView RefreshView NavigationPage
BlazorWebView Image RoundRectangle TabbedPage
Border ImageButton ScrollView Shell
BoxView IndicatorView SearchBar
Button Label Slider

These are all documented in addition to related topics such as:

The new .NET MAUI project template now includes a default stylesheet in “Resourcesstyles.xaml” with a color palette and styling for all the controls. Take for example the Entry. When starting a new application these text inputs will now begin with a shared theme while still being true to the platform on which it runs.

<Style TargetType="Entry">
    <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
    <Setter Property="FontFamily" Value="OpenSansRegular"/>
    <Setter Property="FontSize" Value="14" />
    <Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource LightGray}, Dark={StaticResource DarkGray}}" />
    <Setter Property="VisualStateManager.VisualStateGroups">
            <VisualStateGroup x:Name="CommonStates">
                <VisualState x:Name="Normal">
                        <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
                <VisualState x:Name="Disabled">
                        <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource LightGray}, Dark={StaticResource DarkGray}}" />

For views that support different states we’ve created a sensible default, and provided light and dark mode color options. For more information check out:

Customizing Controls

One of the things .NET MAUI does to improve upon the Xamarin.Forms architecture is adding low-code hooks to modify just about anything. Let’s consider the canonical example of removing the distinctive Android underline on an Entry field. How might you go about doing this when there is no multi-platform style for “underline” because it only exists on Android?

Microsoft.Maui.Handlers.EntryHandler.Mapper.ModifyMapping("NoUnderline", (h, v) =>
    h.PlatformView.BackgroundTintList = ColorStateList.ValueOf(Colors.Transparent.ToPlatform());

That’s all the code there is. This code just needs to run somewhere in the start of your application before the handler is called.

Let’s explain what is going on here. Firstly, the #if ANDROID is a conditional compilation directive that indicates this code should only run for Android. In other cases where you are modifying the control for ALL platforms, this isn’t necessary.

Next, we need need access to the control. The Entry you use is a .NET MAUI control. Each property, command, event, etc. of the Entry is “mapped” by a “handler” to a platform implementation. To modify a mapping you can tap into it via the handler’s map such as Microsoft.Maui.Handlers.EntryHandler.Mapper. From the mapper we have 3 methods:

  • PrependToMapping which runs before the .NET MAUI code
  • ModifyMapping which runs instead of the .NET MAUI code
  • AppendToMapping which runs after the .NET MAUI code

For this case it doesn’t matter which one we use, as it will be called at least once, and no other implementation on the Entry will touch the native properties we need to modify. Here the coded uses ModifyMapping and adds an entry called “NoUnderline”. Typically the property matches the name of an actual property, however in this case we are introducing a new one.

The h in the action is the handler which gives us access to the PlatformView which in this case is of Android type TextView. At this point the code is working directly with the Android SDK.

With the underline now out of the way, you can implement your own design of, say, a bordering box like old-school Windows Phone.

border around an entry view

<Border Stroke="{StaticResource Black}"
        Placeholder="Username" />

For more examples on how you can easily modify the look and feel of controls at the cross-platform as well as platform specific layers, check out the documentation for customizing controls.

We need your feedback

Install the latest preview of Visual Studio 2022 for Windows (17.2 Preview 3) following our simple guide and build your first multi-platform application today.

We’d love to hear from you! As you encounter any issues, file a report on GitHub at dotnet/maui.


Discussion is closed. Login to edit/delete existing comments.

  • Tony Kenny 0

    Sadly, we can’t build even simple UIs with this current release due to exceptions being thrown about a cycle in the UI layout (bug has been reported today on github).
    For me, this couldn’t come at a worse time as I just embarked upon a POC at work to see if we should use MAUI for a large project but I can’t even get a simple example to run. Hoping the fix comes real soon!

    • Enrico Eusebi 0

      Yes, not even the default template work. After all this time it’s really sad, I start looking for alternative.

      • anonymous 0

        This comment has been deleted.

      • Tony Kenny 0

        Platform.Uno, once I got used to its quirks and realised that I was doing some thing wrong, it’s a great tech to use!

    • Brown, Stephen 0

      Have to agree with this, tried the RC and it is a bit of a nightmare, no hot reload working at all across all platforms for Blazor MAUI apps. It seems strange that this has just been glossed over and surely the tooling is equally important as the platform when RC are being made available. I too am involved in putting MAUI forward in our organisation as mobile dev tool of choice with Blazor, but this is not filling me with confidence. I raised this which was closed https://github.com/dotnet/maui/issues/6403
      because of duplicate:

      Please, please prioritise these fixes! Thanks

  • Rod Macdonald 0

    Exciting news! Some questions if I may:

    Is there a way to embed a BlazorWebView control in a .NET Framework 4.8 WinForms app? I note the default template states .NET 6

    I believe Blazor, and I assume that includes Blazor Hybrid (desktop), isn’t to have any C# drag and drop support i.e. JS interop will be required. I’m curious to know if ‘non-Blazor’ MAUI offers drag and drop support?

    Will I be able to render SVG via the Microsoft.Maui.Graphics assembly/API – perhaps using the Skia library?

    Thank you.

  • Kumima Z 0

    Just try some easy demos, it works fine, at least for Windows and Android. I enjoy this kind of cross-platform with C#. The stuff which is needed most now is a detailed Api Document. The document for now is too general. That’s a really needed stuff.

  • Tony Kenny 0

    Is there a guide for WPF/UWP developers to find MAUI equivalent features and controls? For example, in UWP we use a DependencyProperty and in MAUI it uses BindableProperty. There was a small change in the signature for a converter, and I’ve not looked at behaviours yet. Admitedly, I’ve only use WPF/XAML for a few months and that was almost a year ago, so I’m not very experienced anyway.

  • Sowmitri Hulikunte 0

    Good to be aware that software development in progress is future ready. Thanks a lot for information.

  • Mohammed Masudul Hoque 0

    Is Xcode 13.3 mandatory for MAUI RC1 to install and work on for iOS devices?

  • piercarlo schiavo 0

    What about .Net MAUI with .Net 7 preview ?

  • Denis Kotov 0

    sudo dotnet workload install android – is working on Ubuntu, but the following command does not work:
    sudo dotnet workload install maui –from-rollback-file https://aka.ms/dotnet/maui/rc.1.json –source https://aka.ms/dotnet6/nuget/index.json –source https://api.nuget.org/v3/index.json

    Why ? I just want to develop MAUI Android application on Ubuntu, why I cannot do this if android workload is already available on Ubuntu ?
    Please, add support at least for development of MAUI application on Ubuntu for Android and iOS …

  • Earn 1sec 0

    How did you do the conversion? Is there a guide or some resources or is it simply that intuitive? Cheers

  • Ashish Khanal 0

    Please encourage Microsoft to use MAUI with their own big projects like Office apps.
    That’ll dogfood the product and make it more reliable and help with adoption in the wider community.
    Also, please provide a variety of real world sample apps in GitHub.

Feedback usabilla icon