Difegue / TVC-16

Pelican sources for TVC-16. https://tvc-16.science/blogopolis-docker.html
2 stars 0 forks source link

https://tvc-16.science/mica-wpf.html #11

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Blogopolis - Apply Mica to a WPF app on Windows 11

https://tvc-16.science/mica-wpf.html

Simnico99 commented 2 years ago

Well it stopped working on Windows 11 22494.1000 D:

Difegue commented 2 years ago

welp that was fast ¯\_(ツ)_/¯ I'm hoping that means an official way is coming soon! 😅

As an alternative you can setup the whole Windows.UI.Composition shebang and use Windows.UI.Composition.Compositor.TryCreateBlurredWallpaperBackdropBrush(), but that won't give you the full effect unless you reimplement all the winUI bits, as said in the article intro.

Difegue commented 2 years ago

Updated post with info about the new 22523 attribute. 👍

jonasnordlund commented 2 years ago

Very nice, this will be great news for https://github.com/lepoco/wpfui

TheFanatr commented 2 years ago

The problem is that a lot of the Compositor APIs are disabled in WinUI 3 from Windows App SDK 1.0 packaged with MAUI preview 13/14. Have been wrestling with getting access to them, but ultimately was unable to. You can't even create CompositionTargets anymore; if you could then maybe using the randomly included MicaController would be possible, but it too seems stubbed versus the C++/WinRT version and I feel like it wouldn't be activated even if it could be attached to a window. I haven't tried using C#/WinRT because I have had really bad experiences with it before because of the plumbing needed for MSIX packaging; clearly Microsoft wants you to use WinAppSDK, but it really sucks that it's so locked down and curated. I was really looking forward to experimenting with creating a custom Mica brush and using it as the window background before they officially implement it, just for fun, or PR-ing it, but it's all just generated projections locked down through some obscure mechanism. The irony is it might be easier to do in WPF right now. Oh well, maybe it will be possible with time.