AppInfo.RequestedTheme 属性

定义

获取系统或应用程序检测到的主题。

public:
 static property Microsoft::Maui::ApplicationModel::AppTheme RequestedTheme { Microsoft::Maui::ApplicationModel::AppTheme get(); };
public static Microsoft.Maui.ApplicationModel.AppTheme RequestedTheme { get; }
static member RequestedTheme : Microsoft.Maui.ApplicationModel.AppTheme
Public Shared ReadOnly Property RequestedTheme As AppTheme

属性值

主题。

注解

对于不支持主题的平台或平台版本, Unspecified 返回 。

适用于