Is there any api to snap an application? RRS feed

  • Question

  • In the msdn sample(snap sample),It introduced how to Unsnap an app Programmatically(with the ApplicationLayout class method TryUnsnap) .

    My question is: Can I snap an app Programmatically just like Unsnap an app?(Is there any apis?)

    Wednesday, December 28, 2011 8:12 AM


All replies

  • Hi Jian,

    No there are no APIs for that.  It is a user initiated action.


    Jeff Sanders (MSFT)
    Wednesday, December 28, 2011 1:47 PM
  • Hi Jeff,

    Thanks for your answer!

    Thursday, December 29, 2011 9:13 AM
  • Hello,

    Is it still impossible to snap app programmatically?

    Best regards,


    Tuesday, April 24, 2012 7:53 AM
  • Yes.  Snap is a user initiated action. 

    Jeff Sanders (MSFT)

    Tuesday, April 24, 2012 11:47 AM
  • I think this is a pretty big limitation. Some apps are almost always going to be used while snapped to the smallest width to the side of your screen, IM apps are a good example. Without this kind of functionality (being able to set a default snap width upon opening), opening an app only to drag it to half screen, then drag the slider all the way over to the smallest snap width becomes an extremely annoying chore.
    Friday, July 11, 2014 1:08 AM