Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This done by code behind</p> <p><a href="http://www.c-sharpcorner.com/UploadFile/mahesh/391/" rel="nofollow noreferrer">http://www.c-sharpcorner.com/UploadFile/mahesh/391/</a></p> <p>and if you want in XAML use UniformGrid</p> <pre><code>&lt;Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" x:Class="WpfApplication9.MainWindow" x:Name="Window" Title="MainWindow" Width="640" Height="600"&gt; &lt;Window.Resources&gt; &lt;Color x:Key="BlackRes"&gt;Black&lt;/Color&gt; &lt;/Window.Resources&gt; &lt;Grid x:Name="LayoutRoot"&gt; &lt;UniformGrid Margin="29,29.5,23,32.5" Height="500"&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;Rectangle Fill="White" Stroke="Black"/&gt; &lt;Rectangle Stroke="Black"&gt; &lt;Rectangle.Fill&gt; &lt;SolidColorBrush Color="{DynamicResource BlackRes}"/&gt; &lt;/Rectangle.Fill&gt; &lt;/Rectangle&gt; &lt;/UniformGrid&gt; &lt;/Grid&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload