Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Browsing latest articles
Browse All 437 View Live
↧

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


Answer by Liyun Zhang - MSFT for How can I uncheck a RadioButton in .NET MAUI?

I created a new project and reproduced your problem. This is because the radio button won't clear checked state when you set the RadioButtonGroup.SelectedValue as a value that no radio button can...

View Article


Answer by Liyun Zhang - MSFT for "MAUI Shell.TitleView: Unable to Remove...

This is a known issue on the github: [Spec] Shell/NavigationPage TitleView #5063.And there is a workaround for the Android. Just put the following code in the App class: public App() {...

View Article

Answer by Liyun Zhang - MSFT for How to inject INavigation into ViewModel?

Similar implementation works for Xamarin.Forms but Maui returns DependencyService.Get(); null.This is because it call in different place in Xamarin.Forms and .Net Maui.The App.Current is null before...

View Article

Answer by Liyun Zhang - MSFT for How to activate installation of an apk...

First, please add the following permission in the AndroidManifes.xml:<provider android:name="androidx.core.content.FileProvider" android:authorities="${applicationId}.provider"...

View Article


Answer by Liyun Zhang - MSFT for Maui Project giving warning XC0103 (markup...

I cloned your project and reproduced the problem. I have checked the dependnecies of the nuget package and found that the CommunityToolkit.Maui 9.1.1 didn't have the dpendency for .net 9.0.And the...

View Article

Answer by Liyun Zhang - MSFT for .NET Maui - Update UI from bluetooth events

The method is not async so you can just call it directly. Such as:private void OnDiscoveryFinished(){ isDiscovering = false;}And for the ObservableCollection, you can use the CollectionChanged...

View Article

Comment by Liyun Zhang - MSFT on CollectionView Items not showing on...

xmlns:model="clr-namespace:MyProject.Model" this is an example. Just replace MyProject.Model with the namespace of your Player class. @Jack

View Article


Answer by Liyun Zhang - MSFT for Where to locate reference files for multiple...

The easiest way is copying the files in the Resources/raw into the ProjectName.Web. And then you can access the file by the following code in the ProjectName.Web: var a =...

View Article


Answer by Liyun Zhang - MSFT for Deeplink in MAUI...

Please only use the [Activity] and [IntentFilter] in the class. The official document about the Activity name said:The type name of an activity is based on the 64-bit cyclic redundancy check of the...

View Article

Answer by Liyun Zhang - MSFT for Updating .NET MAUI app to android version 34...

If you don't have to use the new api in the Android version 34.0, the easiest way to update your app to android version 34 is setting the target sdk in the AndoridManifest.xml. Just add the following...

View Article

Answer by Liyun Zhang - MSFT for Plugin.Firebase installation error in MAUI ios

This is because the path is too long. You can refer to this issue: Maui - some nugets do not work as path is too long "Could not find a part of the path".And jfversluis comment:this is not a .NET MAUI...

View Article

Answer by Liyun Zhang - MSFT for dotnet publish CLI command fails due to a...

As an answer:Please refer to the official document about Publish a .NET MAUI app for Windows.Publish a packaged .NET MAUI app for Windows with the CLI, such as:dotnet publish -f...

View Article


Answer by Liyun Zhang - MSFT for MAUI compiled binding - whether to use...

First of all, please check the official document about x:Type Markup Extension. The doc said:The x:Type markup extension can be used in object element syntax. In this case, specifying the value of the...

View Article

Comment by Liyun Zhang - MSFT on MAUI: Keep audio playing when navigating to...

What device did you test on? I just create a new project and add the webview with the url you provided in the MainPage and also create a new page. The audio keeps playing when I go to the new page or I...

View Article


Answer by Liyun Zhang - MSFT for How to create Axis in XAML in LiveCharts2, MAUI

I can reproduce you problem.No property, BindableProperty, or event found for "YAxes", or mismatching type between value and property.This error is caused by mismatching type between value and...

View Article

Answer by Liyun Zhang - MSFT for .Net Maui App bar graph throwing XLS0414...

The error occurs at line 24 of the .xaml i.e. "<sfChart:BarSeries ItemsSource="{Binding SalesDataCollection}"" on the 'sfChart:BarSeries' part.This is because there is no BarSeries class in the...

View Article


Answer by Liyun Zhang - MSFT for how to handle keyboard event in maui with...

There is no api can detect keyup event in the .net maui. So you can use the platform native api to do that.For the WindowsPut the following code in the ContenPage.cs: protected override void...

View Article

Answer by Liyun Zhang - MSFT for MAUI: Pop up page is loading on LIVE running...

I cloned your project and reproduced your problem. And when I run the project in the release mode, it crushed and the logs show the following error:[Microsoft.Maui.Controls.Xaml.XamlParseException]:...

View Article

Answer by Liyun Zhang - MSFT for How do I use a custom font?

As you see: // this is how you set the font according to samples Font = Microsoft.Maui.Font.SystemFontOfSize(14)And I have check the source code about the Microsoft.Maui.Font, the font family is...

View Article

Comment by Liyun Zhang - MSFT on How might I share css files between both a...

You are welcome. I just refer to the reference of the app.css in the default project. @sanepete

View Article


Answer by Liyun Zhang - MSFT for Android Page height and width of app changes...

I cloned the sample you provided in the issue link. What I found:The .NET MAUI CommunityToolkit MediaElement: 6.0.1 can't work in my side and I used .NET MAUI CommunityToolkit MediaElement: 5.0.0...

View Article


Image may be NSFW.
Clik here to view.

Answer by Liyun Zhang - MSFT for Change Color of Entry Underline or Remove...

For remove the underline on the android, you can add the following code into the MauiProgram.cs:Microsoft.Maui.Handlers.EntryHandler.Mapper.AppendToMapping(nameof(Entry), (handler, view) => {#if...

View Article

Comment by Liyun Zhang - MSFT on MAUI App, HTTP API Basic authentication...

Did this problem both appear on android and iOS? In addition, can you try to use a token instead of user name and password? And you can try to enable the ClearTextTraffic in the AndroidManifest.xml...

View Article

Answer by Liyun Zhang - MSFT for .Net Maui CollectionView. Changes to one...

First, the TintColor="{Binding Source={x:Reference ThisComponent} and Label Text="{Binding Source={x:Reference Component} bind to different object. Are they correct?And then I created a new sample to...

View Article


Image may be NSFW.
Clik here to view.

Answer by Liyun Zhang - MSFT for Entry on .NET Maui 8 Goes to Top Left of...

I created a new project to test the xaml code you used. And I can only reproduce your problem on the Android 15.0. On the devices that android version is lower than 15 I got:And then I create a android...

View Article

Comment by Liyun Zhang - MSFT on The result of a sum is incorrect when all...

What's the urui:TextField? Did the problem only appear on the android? And did you try to set the value as 0 manually when the entry is empty?

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

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



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

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

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 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


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

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
Browsing latest articles
Browse All 437 View Live


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