Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Browsing all 290 articles
Browse latest View live
↧

Comment by Liyun Zhang - MSFT on MAUI Shell how to change color of 'Text' in...

You can try to bind the second iamge's source to change the icon, because you only have two states and only use two icons. @Vering

View Article


Comment by Liyun Zhang - MSFT on Compatibility Problem after Update from...

I have tried to add the System.Security.Principal.Windows 5.0.0 package in the new .net 8.0 maui project without this error. You can try to clean an rebuild or adding this package after migration...

View Article

Comment by Liyun Zhang - MSFT on How can we get the...

It seems there is no better way to get the Microsoft.UI.Xaml.Controls.Primitives.ScrollBar. Maui doesn't implement the crossplatform view for it and the scrollbar is always used in the scrollviewer and...

View Article

Comment by Liyun Zhang - MSFT on MAUI: The app is working fine in debug mode...

I have tested and the debug mode has the same result as release mode.And the spalsh screen background color is white but the icon is correct. @MatthewPans

View Article

Comment by Liyun Zhang - MSFT on How to remove extra title bar in Android app?

Could you please show the code in the xaml adnd the app.cs?

View Article


Comment by Liyun Zhang - MSFT on Custom App Icon Not Showing in .NET MAUI App...

Did you used the Upgrade Assistant? In addition, could you please show the csproj?

View Article

Comment by Liyun Zhang - MSFT on How to remove extra title bar in Android app?

But the MainActivity's default style(Maui.SplashTheme) implements the Maui.MainTheme.NoActionBar.

View Article

Answer by Liyun Zhang - MSFT for Write file to AppDataDirectory fails with no...

In the Android/data path I can see that a folder with my project name was created that contains a cache folder, but the files folder doesn't get created, nor the file I am trying to write.In fact, you...

View Article


Answer by Liyun Zhang - MSFT for Data binding for Native Views in Maui

First of all, if your old project is Xamarin.iOS not Xamarin Forms. I suggest you migrate the Xamarin.iOS project to .Net iOS. You can refer to the official document about Xamarin Apple project...

View Article


Answer by Liyun Zhang - MSFT for MAUI Blazor when taping the Push...

This is because the MainActivity's default launch mode is"standard"The default mode. The system creates a new instance of the activity inthe task it was started from and routes the intent to it. The...

View Article

Answer by Liyun Zhang - MSFT for NET8 MAUI set SecureStorage in Windows...

I have tested your code and reproduced the issue. And then I have check the source code about the SecureStorage.SetAsyc() on the windows.This exception was caused by var buffer = await...

View Article

Image may be NSFW.
Clik here to view.

Answer by Liyun Zhang - MSFT for How to override a parent resource dictionary...

According to the official document about Merge resource dictionaries from other assemblies:When merged ResourceDictionary resources share identical x:Keyattribute values, .NET MAUI uses the following...

View Article

Answer by Liyun Zhang - MSFT for In .Net Maui CastContext Fails to initialize

According to the error message:Java.Lang.ClassNotFoundException: MauiApp3.CastOptionsProvider ---> Java.Lang.ClassNotFoundException: Didn't find class "MauiApp3.CastOptionsProvider" on path:...

View Article


Answer by Liyun Zhang - MSFT for MAUI Migration -...

As an answer:The Maui project uses AndroidX instead of the Android.Support. So Please make sure that you have migrate the Android.Support package to AndroidX package when you migrate xamarin project to...

View Article

Image may be NSFW.
Clik here to view.

Answer by Liyun Zhang - MSFT for NET8 MAUI and Visual Studio 17.8.6: code...

You can right-click on the project in the Solution Explorer, and select Properties to find the setting about the Code shrinker:For more information, you can refer to the official document about Options...

View Article


Answer by Liyun Zhang - MSFT for .net 8 maui blazor hybrid android app how to...

At first, please add the camera permission in the AndroidManiest:<uses-permission android:name="android.permission.CAMERA" />And then, require the camera permission at runtime:await...

View Article

Answer by Liyun Zhang - MSFT for .NET 8 MAUI and RadioButton: how to set the...

As Jason said, you shoud bind the Value property for the RadioButton. Such as:<BindableLayout.ItemTemplate><DataTemplate><RadioButton x:Name="radio" Margin="0,0,15,0" Content="{Binding...

View Article


Answer by Liyun Zhang - MSFT for .Net MAUI How to Detect ThemeChanged Real-Time?

You can use the following code to detect ThemeChanged Real-Time:Application.Current.RequestedThemeChanged += (s, a) =>{ // Respond to the theme change};For more information, you can refer to the...

View Article

Image may be NSFW.
Clik here to view.

Answer by Liyun Zhang - MSFT for How to launch a Xamarin forms from Android...

First of all, I don't suggest you use the xaml in the xamarin.android project. It should be used in the cross platform project.In the xamarin.android project, if you want show the contentpage, you can...

View Article

Answer by Liyun Zhang - MSFT for MAUI Shell navigation: how to navigate from...

First of all, I suggest you use the CommunityToolkit.Maui.Views.Popup instead of the modal page. Such as:<views:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"...

View Article
Browsing all 290 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>