none
Display settings charms programmatically.

    Question

  • I'm porting a game that has a main menu, which includes a Settings button. I'd like to make that button bring up the settings charms, instead of displaying or custom rolled settings UI. Is there a method that does this?

    Software Engineer, Brainium Studios LLC

    Tuesday, May 01, 2012 5:34 PM

Answers

All replies

  • Tuesday, May 01, 2012 5:46 PM
    Owner
  • Beat me! I was just about to come back and post that I found it.

    Software Engineer, Brainium Studios LLC

    Tuesday, May 01, 2012 5:52 PM
  • How can this be done on a Windows Form application or a WPF? I don't see that Windows.UI exists. Thanks! Using .Net 4.5
    Monday, March 11, 2013 9:36 PM
  • Only Windows Store apps can interact with the charms.

    Windows Forms and WPF are used for writing desktop apps.

    --Rob

    Monday, March 11, 2013 9:51 PM
    Owner
  • Only Windows Store apps can interact with the charms.

    Windows Forms and WPF are used for writing desktop apps.

    --Rob

    I am well aware.  But the Windows 8 ecosystem supports both.  It can obviously be done without a Windows Store app.  My Logitech mouse software allows key bindings and a number of other things including the charm bar.  It's not a Windows Store app.  And I do have a button on my mouse that accomplishes this currently regardless of metro app or within the desktop, it simply doesn't matter.  I am puzzled as to how the programmers at Logitech were able to accomplish this.

    There is some workaround.  If anyone can contribute to a solution, it would be greatly appreciated.



    Monday, March 11, 2013 9:51 PM
  • This forum is specifically for Windows Store apps.

    I'm not sure what the Logitech mouse software is doing, but it is unrelated to what is being discussed in this thread. It may be injecting mouse events or using automation to trigger the charms bar as a user. If you wish to discuss this further then I would recommend posting a clearer description of what you are looking for in a more appropriate forum (probably General Windows Desktop Development Issues: there definitely isn't any support for this in WPF or WinForms themselves).

    --Rob

    Monday, March 11, 2013 10:00 PM
    Owner
  • This forum is specifically for Windows Store apps.

    I'm not sure what the Logitech mouse software is doing, but it is unrelated to what is being discussed in this thread. It may be injecting mouse events or using automation to trigger the charms bar as a user. If you wish to discuss this further then I would recommend posting a clearer description of what you are looking for in a more appropriate forum (probably General Windows Desktop Development Issues: there definitely isn't any support for this in WPF or WinForms themselves).

    --Rob

    Will do Rob.  This was the most relevant search result on Google and Bing within the first page results of each.

    They must be doing something like SendKeys to accomplish it.

    Something like:

    SendKeys.SendWait("^{ESC}C)

    Unfortunately, the above code results in the Start menu coming up and entering "C" in search instead of the simulated event of Windows Button + C which is what I want.

    Fyi, please fix Ctrl+Esc being held down. It's a loop that is a serious problem.  Scared me.

    If only I were able to make SendKeys work I would be set.

    Monday, March 11, 2013 10:10 PM
  • This forum is specifically for Windows Store apps.

    I'm not sure what the Logitech mouse software is doing, but it is unrelated to what is being discussed in this thread. It may be injecting mouse events or using automation to trigger the charms bar as a user. If you wish to discuss this further then I would recommend posting a clearer description of what you are looking for in a more appropriate forum (probably General Windows Desktop Development Issues: there definitely isn't any support for this in WPF or WinForms themselves).

    --Rob

    Will do Rob.  This was the most relevant search result on Google and Bing within the first page results of each.

    They must be doing something like SendKeys to accomplish it.

    Something like:

    SendKeys.SendWait("^{ESC}C)

    Unfortunately, the above code results in the Start menu coming up and entering "C" in search instead of the simulated event of Windows Button + C which is what I want.

    Fyi, please fix Ctrl+Esc being held down. It's a loop that is a serious problem.  Scared me.

    If only I were able to make SendKeys work I would be set.

    For those in search of a desktop solution, I have started a new thread here: http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/9a7f4f66-fa1a-4772-b9bb-5eba01a943f9
    Monday, March 11, 2013 10:34 PM