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

Answer by Liyun Zhang - MSFT for using the book .net maui for C# developers...

I can reproduce your problem and I fixed it by adding the steps Jason said:In Package.appxmanifest, inside of each <Application> tag, add the following extensions:<Extensions><!--...

View Article


Answer by Liyun Zhang - MSFT for Binding ListView to ObservableCollection...

The x:DataType="vm:UserList_ViewModel" in the <ContentPage> will make the ContentPage and the children view bind to type of UserList_ViewModel.You can declare the datatype for the ListView's item...

View Article


Comment by Liyun Zhang - MSFT on MAUI landscape mode grid issues

Can you show the code about the LayoutChanged and Appearing? I can't reproduce your problem.

View Article

Answer by Liyun Zhang - MSFT for How can I store logs in a location...

There is no cross platform api can do this. You need to call the platform native code.1. For the android:Call the following code to get the Download folder (use download folder because there is no...

View Article

Image may be NSFW.
Clik here to view.

Answer by Liyun Zhang - MSFT for MAUI landscape mode grid issues

I copied your code and just add Grid.RowSpan="3" for the grid. And then I get the effect you want without LayoutChanged and Appearing.The full xaml:<ContentPage...

View Article


Comment by Liyun Zhang - MSFT on BlazorWebView in Maui cannot click anything

I created a new project with the Maui Blazor project template and added the three pages(home, counter, weather) in a new TabbedPage. I can click on the counter page's counter button. Can you show the...

View Article

Image may be NSFW.
Clik here to view.

Answer by Liyun Zhang - MSFT for Xamarin Forms: Portable: Targeting S+...

I have checked the two packages you mentioned. The versions you mentioned are not supported for the MonoAndroid,Version=v11.0, so you can update your project's MonoAndroid version to version...

View Article

Answer by Liyun Zhang - MSFT for Auto applying element styles

You can use ApplyToDerivedTypes = "True" in the Styles.xaml to do that:<Style x:Key="ContentPageStyle" TargetType="ContentPage" ApplyToDerivedTypes = "True"> <Setter Property="BackgroundColor"...

View Article


Comment by Liyun Zhang - MSFT on Android foreground service in MAUI Blazor .net8

How did you close the app? Double click the exit button or close it in the recent task? If you closed it in the recent task, the foreground service will also be closed. Because that action will kill...

View Article


Comment by Liyun Zhang - MSFT on Flyout drawer menu not sized correctly in...

Did you use the FlyoutPage or the Shell?

View Article

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

Did you grant the android.permission.MODIFY_AUDIO_SETTINGS permission? In addition, did it work in lower android version?

View Article

Answer by Liyun Zhang - MSFT for Why is two way bind value not working? Maui...

First of all, I reproduced you problem with the await Task.Delay(1000);:private async Task PushToDatabaseFunction() { await Task.Delay(1000); statusLabelBindString = $" {inputFieldString} was added to...

View Article

Comment by Liyun Zhang - MSFT on Flyout drawer menu not sized correctly in...

Actually, you can check the last comment in the link you provide. In addition, the xamarin project template's default version is 5.0.0.2196. You don't have to use the last version. Finally, the xamarin...

View Article


Comment by Liyun Zhang - MSFT on Collection view needs to taps to change its...

Could you pelase show the code about the viewmodel? I can't reproduce your problem without the code.

View Article

Comment by Liyun Zhang - MSFT on Net MAUI Dependency injection does not work

Did you register the DI for the IConfiguration and ILoger?@julianuslemurrex

View Article


Answer by Liyun Zhang - MSFT for How to specify window size for a MAUI...

If you want to specify a minimal window width and a minimal window height only, you can make the project's target framwork as .net 7.0. And then override the App's CreateWindow method: protected...

View Article

Answer by Liyun Zhang - MSFT for LinearGradientBrush for Polygon Stroke...

This is an known issue on the repo: GradientBrushes are not supported on Shape.Stroke. You can follow up it on the github.In addtion, according to the pull request: Added a support for GradientBrushes...

View Article


Comment by Liyun Zhang - MSFT on Issue with .NET MAUI App Handling Shared...

Did the problem appear on android platform?

View Article

Comment by Liyun Zhang - MSFT on Issue with .NET MAUI App Handling Shared...

You can refer to the code about overriding onnewintent methoed in the answer. @HassanVahedi

View Article

Comment by Liyun Zhang - MSFT on Reading Windows Registry HKLM Key from Maui...

I can't reproduce your problem. I can read the key sucessfully after I published the project by the two ways in the official document about Publish a .NET MAUI app for Windows. But I can't read the key...

View Article
Browsing all 445 articles
Browse latest View live


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