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

Comment by Liyun Zhang - MSFT on How to bind a ContentView in MAUI

You can check the official document about Control templates, and binding the ControlTemplate property instead of Content property

View Article


Comment by Liyun Zhang - MSFT on Maui throws FileNotFoundException only when...

What does add as link appsettings.json to Resources/raw with Build Action : MauiAsset mean?

View Article


Comment by Liyun Zhang - MSFT on Maui throws FileNotFoundException only when...

But it can be set as MauiAsset in the class library in my side. You can set it as MauiAsset by csproj in the class library. You can check the edited part in the answer.@DG

View Article

Comment by Liyun Zhang - MSFT on CollectionView only shows items, when I have...

Did you mean public List<string> ItemListe { get; } = new List<string>(); work but the public List<string> ItemListe { get; set; } = new List<string>(); not with the same code?

View Article

Comment by Liyun Zhang - MSFT on How can I add hundreds of pins to Google...

You can refer to the official document about Google Maps Android Marker Clustering Utility.

View Article


Comment by Liyun Zhang - MSFT on how programmatically answer incoming call on...

You said you have resolved it with the InCallService.

View Article

Answer by Liyun Zhang - MSFT for How do I re-enable the keyboard for Entry...

The easiest way to do that is using the following code:#if ANDROID ( MyEntry.Handler.PlatformView as AndroidX.AppCompat.Widget.AppCompatEditText).ShowSoftInputOnFocus = true;#endifAnd you can also...

View Article

Comment by Liyun Zhang - MSFT on Change colorAccent according to theme for...

In my test, the OnConfigurationChanged will be triggered when user change the theme of the device. In addition, the maui project's default theme is Splash theme, did you give up it?

View Article


Answer by Liyun Zhang - MSFT for Change colorAccent according to theme for...

but the problem is that the execution of the code never enters thebody of OnConfigurationChanged.The OnConfigurationChanged will be triggered when the system theme changed not the app's theme...

View Article


Comment by Liyun Zhang - MSFT on Why are there different API Responses from...

You can refer to the similar case: Differences between using C# HttpClient API and the Postman testing? Client call works on Postman, but not C# httpClient getAsync.

View Article

Comment by Liyun Zhang - MSFT on How to use drag and drop gesture to...

the program pauses due to an exception. Did you mean the application crash? In addition, did you test it on all the platforms?

View Article

Comment by Liyun Zhang - MSFT on How to use drag and drop gesture to...

I have post the the code and result iamge. Please check it. @AminaTariq

View Article

Comment by Liyun Zhang - MSFT on Visual Studio Fails to Install OpenJDK v8...

Did you try to reinstall the Visual Studio? Or you can just try to restart the computer.

View Article


Comment by Liyun Zhang - MSFT on BlazorBootstrap PdfViewer loads PDF only...

You are welcome. Glad to know you have resolved this proble. In addition, it is similar as this case: OnInitializedAsync() in blazor.

View Article

Image may be NSFW.
Clik here to view.

Answer by Liyun Zhang - MSFT for .NET MAUI: I have selected an Android...

Please select the .net8.0-android:This area's value will decide the platform you are coding target.

View Article


Comment by Liyun Zhang - MSFT on How to solve this MAUI dependencies hell

I can't reproduce your problem. I copied the package references to a new maui project's csproj file. And there is no problem. The Microsoft.Maui.Controls.Compatibility and the Microsoft.Maui.Controls...

View Article

Comment by Liyun Zhang - MSFT on using maui filesaver without file picker

You can just use the C# IO to do that. In addition, you can also use the Java.IO in the maui android part.

View Article


Comment by Liyun Zhang - MSFT on Changing ContentView's source...

You can try to use the single instance mode for the two views. Creating new instance of the view frequently will cause memory leak easily.

View Article

Answer by Liyun Zhang - MSFT for Pack 'Microsoft.Android.Ref.31' was not...

We need to target Android v31 (NOT v34). What do we need to do in order to target Android v31 in our Maui app?You can just use the <uses-sdk> tag in the AndroidManifest.xml to do...

View Article

Comment by Liyun Zhang - MSFT on Microsoft.Windows.SDK.NET.Ref error with...

I can't reproduce your problem. I installed the windows10.0.19041.41 and it's the default target windows framework. I can use the last version of Community Toolkit MVVM.

View Article
Browsing all 445 articles
Browse latest View live


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