using System;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
publicclass MainClass : Window
{
[STAThread]
publicstaticvoid Main()
{
Application app = new Application();
app.Run(new MainClass());
}
public MainClass()
{
Title = "title";
LinearGradientBrush brush = new LinearGradientBrush(Colors.Red, Colors.Blue, new Point(0, 0), new Point(1, 1));
Background = brush;
}
}