Comment by Liyun Zhang - MSFT on Unable to programatically element.focus() a...
I tested your code in .net 8.0 and it can focus on android simulator.
View ArticleAnswer by Liyun Zhang - MSFT for Unable to programatically element.focus() a...
I can reproduce your problem if this razor page is the root page in your project. This is because the webview is not focused now. So you can make the BlazorWebview focused at first.The easiest way is...
View ArticleComment by Liyun Zhang - MSFT on Uncaught (in promise) NotAllowedError:...
I can't create a sample to reproduce your problem because you didn't provide the full code about IPhoneFeatureService , DecisionHandlerDelegate and WebView_OnNavigationStarted(sender, args);.
View ArticleAnswer by Liyun Zhang - MSFT for How does the MAUI Windows App pop up a...
You can try to use the AppWindow.Closing Event to do that. Please put the following code into the App.cs's constructor.#if WINDOWSusing Microsoft.UI.Windowing;#endif....... public App() {...
View ArticleComment by Liyun Zhang - MSFT on Maui.Storage.Preferences Not Persisting...
I can't reproduece your problem. I created a new project and test the Preferences.Default.Set and Preferences.Default.Get. The value will not lose unless I reinstall the app.
View ArticleComment by Liyun Zhang - MSFT on BasicHttpBinding...
Is it a http request or a https request? Android doesn't support http request defaultly.
View ArticleAnswer by Liyun Zhang - MSFT for Hardware Keyboard MAUI / Blazor MAUI Hybrid
There is no api for maui can detect if the physical keyboard is connected. But you can call the platform native code to do that. bool isphysicakeyboardconnected;#if ANDROID isphysicakeyboardconnected =...
View ArticleAnswer by Liyun Zhang - MSFT for .Net MAUI Regions on screen
For the topbar you can use the Shell.TitleView. And for the rightbar, you can use the ContentPresenter and ControlTemplate.Declare the ControlTemplate in the...
View ArticleComment by Liyun Zhang - MSFT on MAUI app flickers white between page changes...
Actually, you can put the code into the MainActivity's OnCreate method directly.
View ArticleAnswer by Liyun Zhang - MSFT for In Blazor StateHasChanged Used in a Delegate...
Please override the OnAfterRenderAsync instead of OnAfterRender if you want to run async code in it.protected override async Task OnAfterRenderAsync(bool firstRender) { base.OnAfterRender(firstRender);...
View ArticleComment by Liyun Zhang - MSFT on .NET MAUI - Is it possible to enable click...
Did you try to add long press interaction for the custom view?
View ArticleAnswer by Liyun Zhang - MSFT for MAUI: Convert FileImageSource to byte[]
You can try to use the following code:public static async Task<byte[]> ImageSourceToByteArrayAsync(){ var assem = Assembly.GetExecutingAssembly(); using var stream =...
View ArticleAnswer by Liyun Zhang - MSFT for .NET MAUI Navigation - Back to mainpage/home...
You can use the Shell.TitleView to show the back button. And handle the button's clicked event to go back to MainPage:<Shell.TitleView><Grid ColumnDefinitions="2*,8*"><Button Text="Back"...
View ArticleComment by Liyun Zhang - MSFT on Maui Button click works only one time after...
Did you mean the image.clicked event will not work when you get back to the MainPage from the TakeCopyPhotosPage?
View ArticleComment by Liyun Zhang - MSFT on .NET MAUI - Is it possible to enable click...
You can just add the platform native long pressed event to the Button and then it will have both normal clicked event and long pressed event. @Rajzer
View ArticleComment by Liyun Zhang - MSFT on .NET MAUI on Android has stopped upload web...
Did you test in release mode or test on the apk file published by the VS command? In addition, did you try to uncheck AOT Compilation in release mode?
View ArticleComment by Liyun Zhang - MSFT on Touchscreen Functionality Crashing on Rapid...
Did this problem only appear on windows tablet?
View ArticleComment by Liyun Zhang - MSFT on TouchBehavior overrides other button clicks
What platform did you test on? And I didn't see any button in the ContentView.
View ArticleComment by Liyun Zhang - MSFT on Get image data from clipboard in MAUI +...
What platform did you target? There is no such api can do that in maui, you can try to call the platform native code.
View ArticleAnswer by Liyun Zhang - MSFT for Get image data from clipboard in MAUI +...
You can use the WinUI native api to do that. For more information, you can refer to the official document about copy and paste.#if WINDOWSWindows.ApplicationModel.DataTransfer.Clipboard.ContentChanged...
View Article