Skip to content

Mica in react native windows #11175

Answered by DanielSRS
ItsPi3141 asked this question in Q&A
Discussion options

You must be logged in to vote

To use Mica you just have to edit the windows/<your app name>/MainPage.xaml file like the following:

<Page
    x:Class="myapp.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:myapp"
    xmlns:react="using:Microsoft.ReactNative"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+   xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
    mc:Ignorable="d"
-   Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
+   muxc:BackdropMaterial.ApplyToRootOrPageBackground="True">
    <react:Re…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ItsPi3141
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants