Windows 8 WrapPanel

后端 未结 4 1714
囚心锁ツ
囚心锁ツ 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:27

    Try the WrapGrid, it should do what you want: http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.wrapgrid.aspx

    The only catch (which isn't a bad thing) is that WrapGrid can only display items in an ItemsControl, so use it this way (changing ListView to any ItemsControl):

    
        
            
        
    
    

提交回复
热议问题