The WPF filter effect, which currently comes with only Blureffect and dropshadoweffect two types. Dropshadoweffect is a projection effect, can only show the effect of black and gray color, if you want a border to achieve a different color filter effect, we can use blureffect for the implementation of fuzzy processing. The main principle is to use two border overlay, the first border for the background color of the blur effect processing, the second border set the background color, border color and superimposed on the first border above.
:
<Grid> <BorderBackground= "#77227b03"Margin= " the"Cornerradius= "7"> <Border.effect> <BlureffectRadius= "4"Kerneltype= "box"Renderingbias= "Quality"/> </Border.effect> </Border> <BorderBackground= "White"Margin= " the"Cornerradius= " a"BorderBrush= "#227b03"borderthickness= "1"/> <BorderBackground= "#77e80ce0"Margin= "a"Cornerradius= "9"> <Border.effect> <BlureffectRadius= "4"Kerneltype= "box"Renderingbias= "Quality"/> </Border.effect> </Border> <BorderBackground= "White"Margin= "a"Cornerradius= " a"BorderBrush= "#e80ce0"borderthickness= "1"/> <BorderBackground= "#770669af"Margin= " the"Cornerradius= "9"> <Border.effect> <BlureffectRadius= "4"Kerneltype= "box"Renderingbias= "Quality"/> </Border.effect> </Border> <BorderBackground= "White"Margin= " the"Cornerradius= " a"BorderBrush= "#0669af"borderthickness= "1"/> </Grid>
WPF Outer Glow Effect