سلام بر تمامی برنامه نویسان سی شارپ 😉 در این مطلب کد خارج شدن از برنامه با کلید Escape و استفاده از متد Close با wpf و سی شارپ #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
تصویر خروجی این کد:
کد خارج شدن از برنامه با کلید Escape و استفاده از متد Close با wpf و سی شارپ #C :
<Window x:Class="_360Timer.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Concentric Rings" Width="910" Height="512">
<Canvas Name="MainCanvas" Background=''//File:Window.xaml.cs
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Media;
using System.Windows.Shapes;
using System.Windows.Media.Animation;
namespace _360Timer
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Concentric Rings" Width="910" Height="512">
<Canvas Name="MainCanvas" Background=''//File:Window.xaml.cs
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Media;
using System.Windows.Shapes;
using System.Windows.Media.Animation;
namespace _360Timer
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();