using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Input;
using System.Windows.Media;
public class MeetTheDockers : Window
{
[STAThread]
public static void Main()
{
Application app = new Application();
app.Run(new MeetTheDockers());
}
public MeetTheDockers()
{
DockPanel dock = new DockPanel();
Content = dock;
Menu menu = new Menu();
MenuItem item = new MenuItem();
item.Header = "Menu";
menu.Items.Add(item);
DockPanel.SetDock(menu, Dock.Top);
dock.Children.Add(menu);
}
}
|