888 questions
For example, a simple window with a Button :
Button btn1 = new Button()
{
Content = "Click",
HorizontalAlignment = HorizontalAlignment.Center
};
Window wnd1 = new Window()
{
Content = btn1
};
btn1.Click += (sender, e) =>
{
Console.Beep(5000, 10);
};
wnd1.Activate();