سلام بر برنامه نویسان عزیز ایران زمین 😉 در این مطلب آموزش مقداردهی Title (عنوان) پنجره (window) با wpf و c#.net را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
کد مقداردهی Title (عنوان) پنجره (window) با wpf و c#.net :
using System;
using System.Windows;
using System.Windows.Input;
public class MainClass : Window
{
[STAThread]
public static void Main()
{
Application app = new Application();
app.Run(new MainClass());
}
public MainClass()
{
Title = "Title";
WindowStartupLocation = WindowStartupLocation.CenterScreen;
Width = 192;
Height = 192;
}
protected override void OnKeyDown(KeyEventArgs args)
{
base.OnKeyDown(args);
if (args.Key == Key.Up)
using System.Windows;
using System.Windows.Input;
public class MainClass : Window
{
[STAThread]
public static void Main()
{
Application app = new Application();
app.Run(new MainClass());
}
public MainClass()
{
Title = "Title";
WindowStartupLocation = WindowStartupLocation.CenterScreen;
Width = 192;
Height = 192;
}
protected override void OnKeyDown(KeyEventArgs args)
{
base.OnKeyDown(args);
if (args.Key == Key.Up)