|
이 문서는 기계로 번역한 것입니다. 원본 텍스트를 보려면 포인터를 문서의 문장 위로 올리십시오. 추가 정보
|
번역
원본
|
Application.Deactivated 이벤트
네임스페이스: System.Windows
어셈블리: PresentationFramework(PresentationFramework.dll)
XAML의 XMLNS: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
ALT + TAB 또는 작업 관리자를 사용 하 여 다른 응용 프로그램으로 전환 합니다. 창 다른 응용 프로그램에서의 작업 표시줄 단추를 클릭 합니다.
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="SDKSample.App" StartupUri="MainWindow.xaml" Activated="App_Activated" Deactivated="App_Deactivated" />
Imports Microsoft.VisualBasic Imports System ' EventArgs Imports System.Windows ' Application Namespace SDKSample Partial Public Class App Inherits Application Private isApplicationActive As Boolean Private Sub App_Activated(ByVal sender As Object, ByVal e As EventArgs) ' Application activated Me.isApplicationActive = True End Sub Private Sub App_Deactivated(ByVal sender As Object, ByVal e As EventArgs) ' Application deactivated Me.isApplicationActive = False End Sub End Class End Namespace
using System; // EventArgs using System.Windows; // Application namespace SDKSample { public partial class App : Application { bool isApplicationActive; void App_Activated(object sender, EventArgs e) { // Application activated this.isApplicationActive = true; } void App_Deactivated(object sender, EventArgs e) { // Application deactivated this.isApplicationActive = false; } } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008(서버 코어 역할은 지원되지 않음), Windows Server 2008 R2(서버 코어 역할은 SP1 이상에서 지원, Itanium은 지원되지 않음)
.NET Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.