WrapPanel瀑布流布局/换行面板
<pre><code class="language-csharp">&lt;WrapPanel Orientation=&quot;Horizontal&quot;&gt;
&lt;Button Content=&quot;1&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;2&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;3&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;4&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;5&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;6&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;WrapPanel Orientation=&quot;Vertical&quot;&gt;
&lt;Button Content=&quot;1&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;2&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;3&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;4&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;5&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;6&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;/WrapPanel&gt;
&lt;WrapPanel ItemHeight=&quot;60&quot; ItemWidth=&quot;60&quot; Orientation=&quot;Vertical&quot;&gt;
&lt;Button Content=&quot;1&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;2&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;3&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;4&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;5&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;Button Content=&quot;6&quot; Margin=&quot;10&quot;&gt;&lt;/Button&gt;
&lt;/WrapPanel&gt;
&lt;/WrapPanel&gt;</code></pre>