ThemeService Documentation outdated? #19077
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/documentation
triage/untriaged
Indicates an issue requires triaging or verification
On which page?
https://platform.uno/docs/articles/external/uno.extensions/doc/Learn/ThemeService/HowTo-UseThemeService.html
What's wrong?
Normally when we add Features at the project creation, in this case ThemeService, its implemented already in the app.xaml.cs file, and we find the host config already existing. Seems to not be the case for UseThemeSwitching?
See the unchanged features in the csproj and the setup of the host config (also not changed!)
But somehow I did have the .GetThemeService() on the Pages
this.GetThemeService().SetThemeAsync(AppTheme.Dark);
Maybe you could check if that config is missing in template or not longer needed which would be a explaination for its not added from the wizard?Any feedback?
Maybe you could add the way you call this task also to the documentation page, like if you do it with command via command extensions (toggleSwitch is not having Command by default) that could also add some improvement and help understand usage of this extension for controls which are not having this in a kind of usecase :)
The text was updated successfully, but these errors were encountered: