1 write to _glow
PresentationFramework (1)
System\Windows\Controls\ProgressBar.cs (1)
352
_glow
= GetTemplateChild(GlowingRectTemplateName) as FrameworkElement;
16 references to _glow
PresentationFramework (16)
System\Windows\Controls\ProgressBar.cs (16)
68
if (
_glow
== null)
189
if (
_glow
== null)
192
_glow
.InvalidateProperty(UIElement.OpacityMaskProperty);
193
_glow
.InvalidateProperty(Shape.FillProperty);
209
_glow
.SetCurrentValue(Shape.FillProperty, b);
221
_glow
.SetCurrentValue(UIElement.OpacityMaskProperty, mask);
222
_glow
.SetCurrentValue(Shape.FillProperty, this.Foreground);
230
if (
_glow
!= null)
232
if(IsVisible && (
_glow
.Width > 0) && (_indicator.Width > 0 ))
235
double endPos = _indicator.Width +
_glow
.Width;
236
double startPos = -1 *
_glow
.Width;
243
if (DoubleUtil.GreaterThan(
_glow
.Margin.Left,startPos) && ( DoubleUtil.LessThan(
_glow
.Margin.Left, endPos-1)))
247
startTime = TimeSpan.FromSeconds(-1*(
_glow
.Margin.Left-startPos)/200.0);
266
_glow
.BeginAnimation(FrameworkElement.MarginProperty, animation);
270
_glow
.BeginAnimation(FrameworkElement.MarginProperty, null);