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

Answer by Liyun Zhang - MSFT for Running Custom Media Reciever for Chromecast...

You can try to load non-existent image from the sender to the receiver every 4 minutes:CastSession session = mSessionManager.CurrentCastSession;if (null != session) { MediaInfo.Builder builder = new...

View Article


Answer by Liyun Zhang - MSFT for .NET Maui - prevent tab navigation if...

You can override the AppShell's OnNavigating method to cancel the navigating. protected override void OnNavigating(ShellNavigatingEventArgs args) { base.OnNavigating(args); if (args.Source ==...

View Article


Answer by Liyun Zhang - MSFT for MAUI: Hide and show bottom options...

You don't have to use the WeakReferenceMessenger. You can use the conditional compilation instead of it.#if ANDROIDusing Android.Views;#endif ... protected override void OnAppearing() {...

View Article

Answer by Liyun Zhang - MSFT for Set the color of vertical bar in a Flyour...

You can set its color in the Platforms/Windows/App.xaml:<maui:MauiWinUIApplication x:Class="ShellFlyoutSample.WinUI.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"...

View Article

Answer by Liyun Zhang - MSFT for .NET MAUI Blazor Hybrid - cannot resolve...

First of all, the Routes.razor's default namespace is the project name(MauiApp1). So you can try to change it as:<RootComponent Selector="#app" ComponentType="{x:Type local:Routes}" />And then if...

View Article


Image may be NSFW.
Clik here to view.

Answer by Liyun Zhang - MSFT for Display List in MAUI Blazor App after json...

That was caused by @Questions. And you want toDisplay List in MAUI Blazor App after json deserializationYou can delete the @Questions and @jsonstring and display data in the foreach loop. Such...

View Article

Answer by Liyun Zhang - MSFT for With .NET Maui, what am I missing in this...

You used MainPage = new NavigationPage(new MainPlayerPage()); in the App.cs, so you didn't use the AppShell and can't use Shell.Current.GoToAsync(pageName) to navigate in the NavigationPage.You can set...

View Article

Answer by Liyun Zhang - MSFT for How can I push a TabBar onto the navigation...

I have checked the Navigation.NavigationStack, it's type of IReadOnlyList<Page>. So you can't push a TabBar onto the navigation stack. You can only push the contentpage.And you can use the flyout...

View Article


Answer by Liyun Zhang - MSFT for How to set AbsoluteLayout positions and...

I have tested your code and reproduced the issue. I found the problem wasbetween the layout changes and child resizing.You can add the two lines code below at the beginning of the Button_Clicked。var...

View Article


Answer by Liyun Zhang - MSFT for how to implement similar inner HTML...

First of all, you can read the official document about the Hyperlinks for the Xamarin Label. It show the details steps to display the hyperlink in the xamarin.You can use the Label and the Span to...

View Article

Image may be NSFW.
Clik here to view.

Answer by Liyun Zhang - MSFT for How to use Diagnostic Tools for MAUI app on...

You can use the Android Studio to trace memory/cpu usage of your application.First of all, you can refer to the official document about Inspect your app's memory usage with Memory Profiler.And then,...

View Article

Answer by Liyun Zhang - MSFT for .NET MAUI: Unwanted whitespace at bottom of...

This is the default navigation bar for the android. You can put the following code in the OnCreate methoed of the Platforms/Android/MainActivity to hide it: protected override void OnCreate(Bundle...

View Article

Answer by Liyun Zhang - MSFT for Maui Amazon Device Messaging Android Library...

You don't have to reference the dll directly. You can just add the reference of the binding library project.And I refer to it in my Maui project:<ItemGroup...

View Article


Answer by Liyun Zhang - MSFT for MAUI: UI alignment issue in Listview with...

I have copied your project and reproduced your problem.With the same codes the UI has no issue in demo project and has issues in my real project, what may be the possible reason?This is becase all the...

View Article

Image may be NSFW.
Clik here to view.

Answer by Liyun Zhang - MSFT for Android (bottom) style navbar with icons on...

I can reproduce you problem and this is because the navbar uses the default NavMenu.razor.css. You can fix it by change the default css style.Make the first nav item at the same line as others:Open the...

View Article


Answer by Liyun Zhang - MSFT for How to format Label's Text with StringFormat...

Actually, using the Slider as the binding source is better choice. The Text="{Binding StringFormat='{0:F2}'}" will not work for the binding source. And I can't find any way can do that in xaml.But you...

View Article

Comment by Liyun Zhang - MSFT on Xamrin forms iOS app no longer receiving FCM...

The Xamarin.Firebase.iOS.CloudMessaging to 8.10.0.3 was published at 11/6/2022. You can still use the Messaging.SharedInstance. In addition, you can also report this as a new issue on the repo.

View Article


Comment by Liyun Zhang - MSFT on Unable to open another app from within...

Can you use var intent = this.PackageManager.GetLaunchIntentForPackage(the ScreenConnect app package name); this.startActivity(intent); Start the ScreenConnect app?

View Article

Comment by Liyun Zhang - MSFT on Xamarin android emulate usb PC Keyboard

According to this case :Send keyboard-commands to PC from Android via USB or network (without modifying the Kernel), you may need to modify the Kernel.

View Article

Comment by Liyun Zhang - MSFT on Debugging MAUI issues from android playstore...

Did you read the official document about the Android vitals?

View Article
Browsing all 446 articles
Browse latest View live


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