Windows 8 WrapPanel

后端 未结 4 1719
囚心锁ツ
囚心锁ツ 2021-01-12 01:37

I\'ve got problem with automatically breaking StackPanel into next line. Here\'s the sample code:

         


        
4条回答
  •  南笙
    南笙 (楼主)
    2021-01-12 02:30

    Out of the box, there's no WrapPanel available for WinRT. At least not for now... However in the meantime there's a workaround... I've tested it and it works.

    you can check the following links at the following link.

    http://www.codeproject.com/Articles/24141/WrapPanel-for-Silverlight-2-0

    Since WrapPanel inherits from Panel class, you can create a WrapPanel or simply use the the WrapPanel.cs code you'll find in the above SLV 2 app.

    then simply include similar code

    xmlns:wrapPanel="using:yourWinRTApp"
    ....


    ....

    it should do the trick ...

    Info taken from:

    http://www.michielpost.nl/PostDetail_75.aspx

提交回复
热议问题