IAppInfo.RequestedTheme 属性

定义

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

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

属性值

注解

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

适用于