28 references to AppTheme
Microsoft.Maui (3)
Core\IApplication.cs (1)
53
AppTheme
UserAppTheme { get; }
Platform\iOS\ApplicationExtensions.cs (2)
158
case
AppTheme
.Light:
161
case
AppTheme
.Dark:
Microsoft.Maui.Controls (17)
Application\Application.cs (11)
174
public
AppTheme
UserAppTheme
188
public
AppTheme
PlatformAppTheme
203
public
AppTheme
RequestedTheme =>
204
UserAppTheme !=
AppTheme
.Unspecified
245
AppTheme
_platformAppTheme =
AppTheme
.Unspecified;
246
AppTheme
_lastAppTheme =
AppTheme
.Unspecified;
247
AppTheme
_userAppTheme =
AppTheme
.Unspecified;
251
var
newTheme = RequestedTheme;
AppThemeBinding.cs (4)
22
public static BindableProperty AppThemeProperty = BindableProperty.Create("AppTheme", typeof(
AppTheme
), typeof(AppThemeBinding),
AppTheme
.Unspecified,
167
AppTheme
appTheme;
175
AppTheme
.Dark => _isDarkSet ? Dark : Default,
AppThemeChangedEventArgs.cs (2)
11
public AppThemeChangedEventArgs(
AppTheme
appTheme) =>
15
public
AppTheme
RequestedTheme { get; }
Microsoft.Maui.Essentials (8)
AppInfo\AppInfo.shared.cs (4)
45
/// <remarks>For platforms or platform versions which do not support themes, <see cref="
AppTheme
.Unspecified"/> is returned.</remarks>
46
AppTheme
RequestedTheme { get; }
99
/// <remarks>For platforms or platform versions which do not support themes, <see cref="
AppTheme
.Unspecified"/> is returned.</remarks>
100
public static
AppTheme
RequestedTheme => Current.RequestedTheme;
AppInfo\AppInfo.uwp.cs (4)
61
public
AppTheme
RequestedTheme
68
return
AppTheme
.Unspecified;
70
return _applicationTheme == ApplicationTheme.Dark ?
AppTheme
.Dark :
AppTheme
.Light;