1 write to _imageEffectEmulation
PresentationCore (1)
System\Windows\Media\Effects\DropShadowBitmapEffect.cs (1)
65
_imageEffectEmulation
= new DropShadowEffect();
23 references to _imageEffectEmulation
PresentationCore (23)
System\Windows\Media\Effects\DropShadowBitmapEffect.cs (23)
58
if (
_imageEffectEmulation
!= null &&
_imageEffectEmulation
.IsFrozen)
60
return
_imageEffectEmulation
;
63
if (
_imageEffectEmulation
== null)
69
if (
_imageEffectEmulation
.Color != color)
71
_imageEffectEmulation
.Color = color;
77
if (
_imageEffectEmulation
.ShadowDepth != shadowDepth)
81
_imageEffectEmulation
.ShadowDepth = 50.0;
85
_imageEffectEmulation
.ShadowDepth = 0.0;
89
_imageEffectEmulation
.ShadowDepth = shadowDepth;
94
if (
_imageEffectEmulation
.Direction != direction)
96
_imageEffectEmulation
.Direction = direction;
100
if (
_imageEffectEmulation
.Opacity != opacity)
104
_imageEffectEmulation
.Opacity = 1.0;
108
_imageEffectEmulation
.Opacity = 0.0;
112
_imageEffectEmulation
.Opacity = opacity;
117
if (
_imageEffectEmulation
.BlurRadius / _MAX_EMULATED_BLUR_RADIUS != softness)
121
_imageEffectEmulation
.BlurRadius = _MAX_EMULATED_BLUR_RADIUS;
125
_imageEffectEmulation
.BlurRadius = 0.0;
129
_imageEffectEmulation
.BlurRadius = _MAX_EMULATED_BLUR_RADIUS * softness;
133
_imageEffectEmulation
.RenderingBias = RenderingBias.Performance;
137
_imageEffectEmulation
.Freeze();
140
return
_imageEffectEmulation
;