Disable PopUp disappearing on HomeButton click in Rg.PopUp Xamarin - c#

How can I disable the PopUp behavior in my App, that makes the PopUp disappear when the homebutton is touched. Specifically I am using an IPad Air as a Device and when I only touch the Homebuttonbar on the Bottom, the PopUp closes. I need this to stop as I want the PopUp only to close when the Ok button is pressed and the user has made a choice…
Thanks
I kinda tried to solve the problem by repepushing the PopUp if it is not closed by the OK Button. But I would like to disable the pop behavior in the first place...
https://youtu.be/Y9eTrOvFdj4
Check the video please to understand the problem, please.

I tried it with iPad Air and iPad Air 2 simulator. When the PopUp page pops up, click the Home button below, and then go back to the App. The result is that the PopUp page is still there. So I'm not sure if your other code is causing this problem.
Please check the version of the plugin you are using and update it to the latest version if available.
There is an override method(OnResume) in App.cs where you can repop.

Related

Does Xamarin.Forms MasterDetailPage work with Kindle VoiceOver accessibility

I am revisiting an issue where the behaviour of our app on an Amazon Kindle does not work as expected. When using VoiceOver on an Android device it works correctly on version 5.1, 6.0, 7.0, 9.0 and 10. However, on a Kindle Fire 7 (7th generation) running Fire OS 5.6.7.0 the interaction with VoiceOver is a poor experience.
To rule out our app I have tested using the sample code from https://github.com/xamarin/xamarin-forms-samples/tree/master/Navigation/MasterDetailPage. This displays the same issue which is that the MasterDetailPage hamburger menu is unusable when VoiceView is enabled. On any Android device I can tap on any of the menu options and the screen reader highlight will be displayed correctly.
On the Kindle if you are lucky you might get a random element focused, and then drag the highlight, but this is not consistent.
So does Xamarin Forms MasterDetailPage work with Kindle VoiceView? I have tested from 4.1.0sr5 to 4.8.0 with no obvious change. If the answer is that it doesn't work then at least I know to give up trying.
So the main issue is that VoiceView navigation is not intuitive. You cannot tap on elements but you need to swipe left and swipe right to select whole words. I'm guessing this was based on the ebook controls and was kept consistent with the Fire.
So to navigate the menu you have to tap and then swipe left to navigate up and swipe right to navigate down.
There is still a bug with the MasterDetailPage in that when the Master page is shown the hamburger has focus, but swiping left moves up to the toolbar and swiping right goes down to the back button. That might be possible to work around by unselecting the icon after it has been pressed - something to look at.
For a really good example of how painful VoiceView is do the following
Start the Silk Browser
Do a search so that the browser has a list of pages to click
Enable VoiceView
Attempt to select a link.
Once VoiceView is enabled the only way is to swipe left/right every linked element on the page which is not pleasant at all.

Keyboard Shortcut on asp.net Button

I want to apply the keyboard shortcut Ctrl+W (closes a browser tab) on an asp.net button. When I click on the asp.net button, it should work like the above controls. Is it possible? And if it is, from where can I get the code for Ctrl+W(close a browser tab).
window.close() won't work to close a browser's tab.
Simply put: it won't work, because you cannot close the current page with JavaScript (well, you can do it from your own developer console, but not from a script). Please take a look at this question for details: window.close and self.close do not close the window in Chrome

How to detect the context menu opening over a WebView (Windows Store App)

I am trying to detect a long press/right click that opens the context menu over a WebView. I tried detecting a right click by using JavaScript (WebView.InvokeScript) however by capturing this right click it would also capture the right click to open the app bar.
I also took a look at customizing the context menu for a web view but it seems that this is not possible.
Is there a way detect a context menu opening up when the user is interacting with a WebView? Any help is appreciated, thanks!

Disable Right click on windows ce

We have an application that runs on fullscreen but if I keep my fingers pressed on the borders of the application (corners), I get the right click menu (copy paste etc). I need to programmatically disable right click so that that window wouldn't open.
Edit: I want to disable right click on device level, NOT application level.
Is there any way of doing it? If so how?
Thank you
If you are the OEM of your target device, you can disable aygshell API (SYSGEN_AYGSHELL= 0), but you may lose other features also.

How to display ok button at bottom in .net compact framework?

I am developing mobile application in C#. I am using the following code in my application to display the messagebox but the button ok is displayed at the top right corner. I want to display the ok button at the bottom. This is my code
MessageBox.Show("Records successfully inserted","Customer Entry",MessageBoxButtons.OK,MessageBoxIcon.None,MessageBoxDefaultButton.Button1);
Is anything wrong in my code? or should I need to do different things ? Can you please provide me any code or link through which I can resolve the above issue?
It is the standard MessageBox behaviour in the compact framework to display the OK button at the top right corner (unless, I think, you are on a Windows Mobile 6.5.x, in that case it would be displayed at the bottom).
The only way I can see of "moving" that OK button at the bottom would be to create a form and use it instead of the MessageBox. That means creating a kind of custom MessageBox class.
This is quite annoying i agree. Especially when working on small touchscreens where pressing the OK in the top right is difficult.
Since you just want to present the OK button id suggest using MessageBox.OKCancel instead and just treat any button press as OK. Setting anything other than OK will show the buttons at the bottom.
MessageBox.Show("Records successfully inserted","Customer Entry",MessageBoxButtons.OKCancel,MessageBoxIcon.None,MessageBoxDefaultButton.Button1);

Categories