Skip to content

Commit 45c6541

Browse files
oldnewthingjwmsft
authored andcommitted
Merged PR 21249: ActualTheme will not be Default
Default is used for RequestedTheme, but is not returned by ActualTheme, per [sample code](https://microsoft.sharepoint.com/teams/OSG_DevX/Final%20Review%20Specs/Forms/AllItems.aspx?id=%2Fteams%2FOSG%5FDevX%2FFinal%20Review%20Specs%2FRS3%20API%20spec%20%2D%20FrameworkElement%2EActualTheme%20%2D%20API%20review%20copy%2Edocx&parentview=7). Calling this out because I've seen code that [tries to recover from an ActualTheme of "Default" by trying to guess what theme is actually in effect](https://microsoft.visualstudio.com/OS/_git/OSClient/pullrequest/10121384).
1 parent 5bbe36c commit 45c6541

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

windows.ui.xaml/frameworkelement_actualtheme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Gets the UI theme that is currently used by the element, which might be differen
1919

2020
A value of the enumeration, for example **Light**.
2121

22+
The value of this property will not be **Default**.
23+
2224
## -remarks
2325

2426
## -see-also

0 commit comments

Comments
 (0)