Using Mica on Windows #16091
Unanswered
StefanKoell
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It looks like a bug with TransparencyBackgroundFallback property. Can you open an issue for that? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I asked on Telegram but I guess it passed by too quickly.
I'm trying to figure out how I can create an app on Windows which is using Mica background if possible and as a fall back it should simply use solid colors for background elements. What I can't figure out is how to handle theme changes. There's a property on the Window called
TransparencyBackgroundFallback
(IBrush) but even if I put a DynamicResource in it, it will stick to the initial value - so switching themes do not really work when Mica is not available.I found a hack which makes it work by setting
TransparencyLevelHint="Mica,Transparent"
and when theActualTheme
property changed I do the following on the Window:Since I can't find any docs or samples handling these cases, I'm wondering if I'm doing something wrong of if it is a bug. Has anyone created an app like this before?
Thanks,
Stefan
Beta Was this translation helpful? Give feedback.
All reactions