Windows. C#. XBox360 Controller prevent default Guide Button popup panel and show my own - slimdx

I want to use XBox360 Controller in my app. I can get user input with SlimDx.dll. But I cant catch 'XboxButton' or 'GuideButton' pressed. I want catch it to prevent showing default panel (see screenshot) and show my own panel with my controls. Is it possible?

Related

Prevent Xamarin Forms Displayactionsheet from closing on outside touch

I have an DisplayActionSheet with two choices; User and Guest. I have to choose any one of these before proceeding to login page . However, when I click outside the dialog window , the dialog closes. How can I stop this behavior?
I would suggest you to use pop-up page in that situation and configure it to not close on background click. There is a simple library which can help you to build popup's https://github.com/rotorgames/Rg.Plugins.Popup, it also available via NuGet.

Detect user clicked on specific button on mini browser (window phone)

Im on development of window phone application,
Scenario:
Mini browser opening a page(for example google.com)
Google.com has a button called 'Search'
If User clicked button 'Search'
Redirect to an redirect.xaml
Else
Do nothing
Here is my scenario, how can I actually detect the User clicked the button and only they can proceed to the next page? Is that I have to use javascript in this situation? because if on web, this is technique which I will use.
Webbrowser control downloads we content and you have to parse the content or to handle the js actions. Thats the way to do it.

Back button only return in Windows Phone application

Is it allowed by Windows Phone application certification rules, to only have users be able to return to a previous screen with the use of a hardware back button?
In my scenario, a user clicks on a setting button and lands at a settings page. He changes settings if he decides to, and all the changes get saved automatically, like in iOS.
But currently, the only way for the user to get out of the settings screen, is to press a hardware Back button on the phone.
Will such implementation of navigation functionality pass the Windows Phone certification?
Yes - leave the back button as the navigation method to get back to your main page after visiting the settings page. Not only is this allowed, but it is the desired method of back navigation, and it is what Windows Phone users expect. Here is a great article on the subject: http://blogs.msdn.com/b/ptorr/archive/2011/10/06/back-means-back-not-forwards-not-sideways-but-back.aspx
As far as I understand the terms of the navigation guideline is your usage the right way to go.
Back button
Pressing the back button from the first screen of an application must exit the application.
Pressing the back button must return the application to the previous page.
If the current page displays a context menu or a dialog, the pressing the Back button must close the menu or dialog and cancel the
backward navigation to the previous page.
You should only implement back button behaviors that navigate back or dismiss context menus or modal dialog boxes. All other
implementations are prohibited.
See this cheat sheet for more informations on the design guidelines.

How to load second view in Preference window cocoa

I am developing a cocoa application for mac. I have created a preference window with four buttons in toolbar. I am loading views on click event of buttons. Its working fine.
What I want to know is how to load another view on click of button in a view. Like in preference window of Safari, there is tab named with Privacy. And there is a button 'Details...' in Privacy tab. When we click on that button it shows a new view which shows a list of cookies.
Any Idea how to load view like view loaded on click of 'Details...' button???
There are several approaches, depending on what you're trying to accomplish. The easiest is probably to create the view you want, but make it hidden when you don't want it to be visible. Then when the user presses the "Details…" button, make it visible (and possibly expand the window if necessary) by calling [-NSView setHidden:NO].
Another way is to make the view a separate view in your .nib file, and when the "Details…" button is pressed, insert the view into the appropriate window using [-NSView addSubView:].
You could also create the view at runtime when the user presses the "Details…" button. That seems like a lot of work, though.

How to use IKeyboardInputSink to tab between MFC container and WPF User Control

I have a PropertySheet control in MFC dialog which has few tab pages. Inside the tab pages I want to add user control developed in WPF as tab page content. This requirement I have already achieved. However, now final thing which I am left with is setting the tab order properly between between PropertySheet and WPF User control i.e. From Tab page header -> WPF User Control (will move inside the User control as per set tab order) -> OK Button -> Cancel Button -> Apply Button -> Help Button and back to Tab page header. As of now Tabbing only works within the PropertySheet.
I understand in order to move the cursor seamlessly between MFC and WPF controls, I need to implement the IKeyboardInputSink interface. But I couldn't find/understand how I should implement this interface. Can someone pls provide info on how I can achieve this?

Resources