using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
class MainClass : Window
{
[STAThread]
public static void Main()
{
Application app = new Application();
app.Run(new MainClass());
}
public MainClass()
{
DockPanel dock = new DockPanel();
Content = dock;
for (int i = 0; i < 17; i++)
{
Button btn = new Button();
btn.Content = ""+ i;
dock.Children.Add(btn);
btn.SetValue(DockPanel.DockProperty, (Dock)(i % 4));
}
}
}