I am develop an UWP app, and I am using Template 10. I have a black image and a white image. I want when the user choose dark theme, show the white image, and when the user choose light theme show the black image, exemple:
if(dark theme)
{
white image;
}
else
{
black image;
}
You can get current RequestedTheme using
this.RequestedTheme
and then compare it withElementTheme.Light
orElementTheme.Dark
Method 1
Method 2