Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Browsing index pages (449 articles)
↧

Answer by Liyun Zhang - MSFT for .NET MAUI StaticResource not found for key

I have created a new project to test your code and met the same error. Then I added two break point. One is on the MainPage's construction method and the other is on the App.cs's construction method.I...

View Article


Answer by Liyun Zhang - MSFT for Maui ContentPage Handler is null when page...

There is a method named OnHandlerChanged in the ContentPage. And in this method. The handler will have the instance. The handler will not initialize when the OnAppearing method called.So you can get...

View Article


Answer by Liyun Zhang - MSFT for MAUI; cannot access colors from resources in...

You can try the following code:if (App.Current.Resources.TryGetValue("LiteGreen", out var colorvalue))   var greencolor = (Color)colorvalue;

View Article

Answer by Liyun Zhang - MSFT for SafeArea not functioning on Android devices...

This issue began after updating the project from .NET 8 to .NET 9.This is because the .NET 9 Android targets Android 15.0 by default.SafeArea does not function as expected on Android devices with...

View Article

Answer by Liyun Zhang - MSFT for MAUI: Serilog log file is not creating

Log file not found at expected location:/data/user/0/com.companyname.appname/files/logs/log.txtThis is because you used rollingInterval: RollingInterval.Day parameter in the new...

View Article


Comment by Liyun Zhang - MSFT on Use the correct type of BindingContext in xaml

You can using the reference binding instead of the relative binding.

View Article

Comment by Liyun Zhang - MSFT on NullReferenceException when calling...

What platform did you test on? And did you debug to check which line caused this error? Did you mean the ApplicationState.StateChanged invoked before the component initialized?

View Article

Comment by Liyun Zhang - MSFT on maui: The project doesn't know how to run...

The default csproj file was: <TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccataly‌​st</TargetFrameworks‌​>. You don't have to change it.

View Article


Comment by Liyun Zhang - MSFT on How to always display cursor on Editor MAUI...

I can't reproduced your problem. I called the Focus() method to make the Editor always keep focused and display cursor but this will break other controls' focused event such as button's clicked event.

View Article


Answer by Liyun Zhang - MSFT for MAUI Android Fine location permission is not...

First, according to your description, the android.permission.ACCESS_FINE_LOCATION didn't work correctly. You can clean and rebuild or restart the visual studio after you added it into the...

View Article

Comment by Liyun Zhang - MSFT on Is there anyway to show synchronous popups...

You can bind the page's button's IsEnable property to a bool value. And set the value as false before the popup showing, set it as true after the popup disppearing. Or you can refer to this thread:...

View Article

Comment by Liyun Zhang - MSFT on Cannot enable compiled bindings with source...

Did you set the x:DataType for the control in your library project?

View Article

Answer by Liyun Zhang - MSFT for WebView Handler not loading on Android

I can reproduce your problem on the Android. This because you didn't set the source property for the webview. So the MapSource method of the WebViewHandler wasn't called. The Android webview's url is...

View Article


Comment by Liyun Zhang - MSFT on Maui Local notification does not work when...

What device did you test on? Did you check the Scheduled Android notifications?

View Article

Comment by Liyun Zhang - MSFT on Compile MAUI .NET 9 project with external DLL

Actually, the gradle will auto change the vaule if you didn't set it manually in the AndroidManifest. But the third party dll makes you use tools:replace="android:debuggable" in the AndroidManifest. So...

View Article


Answer by Liyun Zhang - MSFT for MAUI - AndroidManifest uses-permission no...

Why do I need the uses-permission inside my AndroidManifest.xml when I need to request it manually anyway?The uses-permission in the AndroidManifest.xml is used to declare the permissions your app...

View Article

Comment by Liyun Zhang - MSFT on How To Disable Platform Button Effects in...

Did you want to remove the click ripple effect on the Android? I tested your code and the quickly click effect has been removed, but the ripple effect still showed when I pressed the button and...

View Article


Image may be NSFW.
Clik here to view.

Answer by Liyun Zhang - MSFT for Binded property of child context not...

I created a new project to test your code. And I deleted the SelectedItem="{Binding SelectedString}" and Text="{Binding PropertyThatDisplaysCorrectly}" due to I didn't see where did you declare the two...

View Article

Answer by Liyun Zhang - MSFT for The result of a sum is incorrect when all...

I can reproduce your problem and I used the trigger to fix it:<Entry x:DataType="local:MyViewModel" x:Name="entry" Keyboard="Numeric" Text="{Binding Notificado}" TextColor="Black"...

View Article

Comment by Liyun Zhang - MSFT on .NET MAUI Community Toolkit V10.0 Popup...

This is an known issue on the github repo: MissingMethodException when using CommunityToolkit.Maui.Views.PopupExtensions.ShowPopupAsync.

View Article
Browsing index pages (449 articles)


Latest Images