语言

Application.Current 属性

定义

获取当前应用程序的 Application 对象。

static Application Current();
public static Application Current { get; }
var application = Application.current;
Public Shared ReadOnly Property Current As Application

属性值

当前应用程序的 Application 对象。

注解

应用程序 是实现静态 Current 属性的单一实例,用于为当前应用程序提供对 应用程序 实例的共享访问。 单一实例模式可确保 应用程序管理的状态(包括共享资源和属性)可从单个共享位置获取。

适用于