1 write to _glow
PresentationFramework (1)
System\Windows\Controls\ProgressBar.cs (1)
346
_glow
= GetTemplateChild(GlowingRectTemplateName) as FrameworkElement;
16 references to _glow
PresentationFramework (16)
System\Windows\Controls\ProgressBar.cs (16)
61
if (
_glow
== null)
179
if (
_glow
== null)
182
_glow
.InvalidateProperty(UIElement.OpacityMaskProperty);
183
_glow
.InvalidateProperty(Shape.FillProperty);
200
_glow
.SetCurrentValue(Shape.FillProperty, b);
214
_glow
.SetCurrentValue(UIElement.OpacityMaskProperty, mask);
215
_glow
.SetCurrentValue(Shape.FillProperty, this.Foreground);
223
if (
_glow
!= null)
225
if(IsVisible && (
_glow
.Width > 0) && (_indicator.Width > 0 ))
228
double endPos = _indicator.Width +
_glow
.Width;
229
double startPos = -1 *
_glow
.Width;
236
if (DoubleUtil.GreaterThan(
_glow
.Margin.Left,startPos) && ( DoubleUtil.LessThan(
_glow
.Margin.Left, endPos-1)))
240
startTime = TimeSpan.FromSeconds(-1*(
_glow
.Margin.Left-startPos)/200.0);
260
_glow
.BeginAnimation(FrameworkElement.MarginProperty, animation);
264
_glow
.BeginAnimation(FrameworkElement.MarginProperty, null);