Answered Display settings charms programmatically.

  • martes, 01 de mayo de 2012 17:34
     
     
    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

Todas las respuestas

  • martes, 01 de mayo de 2012 17:46
    Moderador
     
     Respondida
  • martes, 01 de mayo de 2012 17:52
     
     
    Beat me! I was just about to come back and post that I found it.

    Software Engineer, Brainium Studios LLC

  • lunes, 11 de marzo de 2013 21:36
     
     
    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
  • lunes, 11 de marzo de 2013 21:51
    Moderador
     
     

    Only Windows Store apps can interact with the charms.

    Windows Forms and WPF are used for writing desktop apps.

    --Rob

  • lunes, 11 de marzo de 2013 21:51
     
     

    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.



  • lunes, 11 de marzo de 2013 22:00
    Moderador
     
     

    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

  • lunes, 11 de marzo de 2013 22:10
     
      Tiene código

    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.

  • lunes, 11 de marzo de 2013 22:34
     
      Tiene código

    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