locked
WinJS.UI.Animation.showPanel()怎么控制从左边弹出 RRS feed

  • Question

  •  WinJS.UI.Animation.showPanel()怎么控制从左边弹出
    Tuesday, May 28, 2013 9:33 AM

Answers

All replies

  • Hi,

    this is an English forum. For better help and support you should ask your question in English or in one of your local forums.


    Best Regards. When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer. This helps us build a healthy and positive community.

    @Horizon_Net | Blog

    Tuesday, May 28, 2013 8:10 PM
  • Hi zhaowh,

    If you want to begin the showpanel from left side of screen, you can specific the offset paramter, details please refer: http://msdn.microsoft.com/zh-cn/library/windows/apps/br230467.aspx

    also, you can also define panel's style(left:0px) leaving the offset arugment empty e.g.

    #myPanel
    {
        ;
        left: 0px;
        top: 0px;
        width: 364px;
        height: 100%;
        color: white;
        background-color: #323232;
        opacity: 0;
        z-index: 1;
    }

    I would like to suggest you download the following sample and check the showpanel animation code

    #HTML animation library sample

    http://code.msdn.microsoft.com/windowsapps/Using-the-Animation-787f3720

    Hope this helps, thanks.


    Yanping Wang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, May 29, 2013 6:20 AM
    Moderator
  • Hi zhaowh,

    Like Horizon_Net said, please post issue in English for better help.

    I translated your post in English for other user can understand your requirement.

    How to popup the WinJS.UI.Animation.showPanel()  from left side

    Anything I misunderstand please let me know. thanks.


    Yanping Wang
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, May 29, 2013 6:48 AM
    Moderator
  • This does not work.

    Download the sample file and switch 'right: 0px' to 'left: 0px' and you will see that the animation still animates from the right to the left.

    This is still an unresolved item.

    None of the solutions here are valid thus far unless I am overlooking something.

    Wednesday, July 3, 2013 12:32 PM
  • For a update sample, please read at

    http://social.msdn.microsoft.com/Forums/windowsapps/en-US/31df1804-627b-4f49-8071-79ed5ffec15f/showpanel-problems-with-winjsuianimation#b9706c51-4a0f-4900-a211-76d096e03ed2


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Wednesday, August 28, 2013 6:51 AM
    Moderator