We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5aa86f commit e384557Copy full SHA for e384557
1 file changed
dev/DevWinUI/Common/TrayIcon/SystemTrayIcon.cs
@@ -238,7 +238,13 @@ public void SetIcon(IconId iconId)
238
if (IsVisible)
239
UpdateIcon();
240
}
241
-
+ public void SetTheme(ElementTheme elementTheme)
242
+ {
243
+ if (_window != null && _window.Content is FrameworkElement element)
244
245
+ element.RequestedTheme = elementTheme;
246
+ }
247
248
private void AddToTray(uint iconId)
249
{
250
if (currentIcon.Value == 0) // Fallback to default icon
0 commit comments