WindowsCompositionSamples
WindowsCompositionSamples copied to clipboard
[Question] How to achieve this effect?
https://stackoverflow.com/questions/49718377/dropshadow-with-image-blur-uwp
from Groove Music:
I think you're looking for this control:
https://docs.microsoft.com/en-us/windows/communitytoolkit/controls/dropshadowpanel
this shadow is not solidcolorbrush, it is generated from that image.
Hi @HppZ we'd recommend using Win2d to pre-blur the image, put that blurred surface in a visual, and parent that to the visual tree so that it's behind your image. Could you give that a try and see if you're able to get the effect you're looking for?
I have implemented this effect in the ColorShadow control in CompositionProToolkit v1.0.1. Here are the details.