[WPF]Grid
<pre> <span class="attr">xmlns</span><span class="kwrd">="http://schemas.microsoft.com/winfx/2006/xaml/presentation"</span></pre>
<pre class="alt"> <span class="attr">xmlns:x</span><span class="kwrd">="http://schemas.microsoft.com/winfx/2006/xaml"</span></pre>
<pre> <span class="attr">Title</span><span class="kwrd">="Window1"</span> <span class="attr">Height</span><span class="kwrd">="300"</span> <span class="attr">Width</span><span class="kwrd">="300"</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">Grid</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">Grid.RowDefinitions</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">RowDefinition</span><span class="kwrd">/></span></pre>
<pre> <span class="kwrd"><</span><span class="html">RowDefinition</span><span class="kwrd">/></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">RowDefinition</span><span class="kwrd">/></span></pre>
<pre> <span class="kwrd"></</span><span class="html">Grid.RowDefinitions</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">Grid.ColumnDefinitions</span> <span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">ColumnDefinition</span><span class="kwrd">/></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">ColumnDefinition</span><span class="kwrd">/></span></pre>
<pre> <span class="kwrd"><</span><span class="html">ColumnDefinition</span><span class="kwrd">/></span></pre>
<pre class="alt"> <span class="kwrd"></</span><span class="html">Grid.ColumnDefinitions</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">Button</span> <span class="attr">FontSize</span><span class="kwrd">="50"</span> <span class="attr">Grid</span>.<span class="attr">Row</span><span class="kwrd">="0"</span> <span class="attr">Grid</span>.<span class="attr">Column</span><span class="kwrd">="0"</span><span class="kwrd">></span>O<span class="kwrd"></</span><span class="html">Button</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">Button</span> <span class="attr">FontSize</span><span class="kwrd">="50"</span> <span class="attr">Grid</span>.<span class="attr">Row</span><span class="kwrd">="0"</span> <span class="attr">Grid</span>.<span class="attr">Column</span><span class="kwrd">="1"</span><span class="kwrd">></span>X<span class="kwrd"></</span><span class="html">Button</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">Button</span> <span class="attr">FontSize</span><span class="kwrd">="50"</span> <span class="attr">Grid</span>.<span class="attr">Row</span><span class="kwrd">="0"</span> <span class="attr">Grid</span>.<span class="attr">Column</span><span class="kwrd">="2"</span><span class="kwrd">></span>O<span class="kwrd"></</span><span class="html">Button</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">Button</span> <span class="attr">FontSize</span><span class="kwrd">="50"</span> <span class="attr">Grid</span>.<span class="attr">Row</span><span class="kwrd">="1"</span> <span class="attr">Grid</span>.<span class="attr">Column</span><span class="kwrd">="0"</span><span class="kwrd">></span>O<span class="kwrd"></</span><span class="html">Button</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">Button</span> <span class="attr">FontSize</span><span class="kwrd">="50"</span> <span class="attr">Grid</span>.<span class="attr">Row</span><span class="kwrd">="1"</span> <span class="attr">Grid</span>.<span class="attr">Column</span><span class="kwrd">="1"</span><span class="kwrd">></span>X<span class="kwrd"></</span><span class="html">Button</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">Button</span> <span class="attr">FontSize</span><span class="kwrd">="50"</span> <span class="attr">Grid</span>.<span class="attr">Row</span><span class="kwrd">="1"</span> <span class="attr">Grid</span>.<span class="attr">Column</span><span class="kwrd">="2"</span><span class="kwrd">></span>X<span class="kwrd"></</span><span class="html">Button</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">Button</span> <span class="attr">FontSize</span><span class="kwrd">="50"</span> <span class="attr">Grid</span>.<span class="attr">Row</span><span class="kwrd">="2"</span> <span class="attr">Grid</span>.<span class="attr">Column</span><span class="kwrd">="0"</span><span class="kwrd">></span>X<span class="kwrd"></</span><span class="html">Button</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"><</span><span class="html">Button</span> <span class="attr">FontSize</span><span class="kwrd">="50"</span> <span class="attr">Grid</span>.<span class="attr">Row</span><span class="kwrd">="2"</span> <span class="attr">Grid</span>.<span class="attr">Column</span><span class="kwrd">="1"</span><span class="kwrd">></span>O<span class="kwrd"></</span><span class="html">Button</span><span class="kwrd">></span></pre>
<pre> <span class="kwrd"><</span><span class="html">Button</span> <span class="attr">FontSize</span><span class="kwrd">="50"</span> <span class="attr">Grid</span>.<span class="attr">Row</span><span class="kwrd">="2"</span> <span class="attr">Grid</span>.<span class="attr">Column</span><span class="kwrd">="2"</span><span class="kwrd">></span>O<span class="kwrd"></</span><span class="html">Button</span><span class="kwrd">></span></pre>
<pre class="alt"> <span class="kwrd"></</span><span class="html">Grid</span><span class="kwrd">></span></pre>
<pre><span class="kwrd"></</span><span class="html">Window</span><span class="kwrd">></span></pre>
.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, “Courier New”, courier, monospace; background-color: #ffffff; /white-space: pre;/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }]]>