13 writes to _brush
ReachFramework (13)
AlphaFlattener\BrushProxy.cs (13)
370
_brush
= brush;
417
_brush
= _brush.CloneCurrentValue();
452
_brush
= tb;
476
_brush
= tb;
497
_brush
= lb;
521
_brush
= rb;
794
_brush
= _brush.CloneCurrentValue();
1025
_brush
= BuildBrush();
1040
_brush
= _brush.CloneCurrentValue();
1181
_brush
= _brush.CloneCurrentValue();
1355
_brush
= newBrush;
2532
bp.
_brush
= b;
2591
bp.
_brush
= b;
86 references to _brush
ReachFramework (86)
AlphaFlattener\BrushProxy.cs (86)
387
if (
_brush
!= null)
389
str = str +
_brush
.GetType();
415
if (! (
_brush
is SolidColorBrush) && ! Utility.IsIdentity(
_brush
.RelativeTransform))
417
_brush =
_brush
.CloneCurrentValue();
420
Matrix mat = Utility.MergeTransform(
_brush
.Transform,
_brush
.RelativeTransform, bounds);
422
_brush
.Transform = new MatrixTransform(mat);
423
_brush
.RelativeTransform = Transform.Identity;
429
if (
_brush
is TileBrush)
431
TileBrush tb =
_brush
as TileBrush;
480
if (
_brush
is LinearGradientBrush)
482
LinearGradientBrush lb =
_brush
as LinearGradientBrush;
501
if (
_brush
is RadialGradientBrush)
503
RadialGradientBrush rb =
_brush
as RadialGradientBrush;
534
if (
_brush
!= null)
572
if ((_opacityMask != null) && (
_brush
!= null))
608
if (
_brush
is SolidColorBrush)
610
SolidColorBrush y =
_brush
as SolidColorBrush;
615
if (
_brush
is GradientBrush)
617
GradientBrush y =
_brush
as GradientBrush;
630
if (
_brush
is TileBrush)
632
TileBrush tb =
_brush
as TileBrush;
649
if (
_brush
is ImageBrush)
651
ImageBrush ib =
_brush
as ImageBrush;
661
if (
_brush
is DrawingBrush)
663
DrawingBrush db =
_brush
as DrawingBrush;
677
if (
_brush
!= null)
679
Debug.Assert(false, "IsOpaque(" +
_brush
.GetType() + ") not handled");
697
if (
_brush
is SolidColorBrush)
699
SolidColorBrush y =
_brush
as SolidColorBrush;
706
if (
_brush
is GradientBrush)
708
GradientBrush y =
_brush
as GradientBrush;
723
if (
_brush
is DrawingBrush)
730
DrawingBrush db =
_brush
as DrawingBrush;
751
if (
_brush
is ImageBrush)
758
ImageBrush ib =
_brush
as ImageBrush;
773
if (
_brush
!= null)
775
Debug.Assert(false, "IsTransparent not handled " +
_brush
.GetType());
792
if (!(
_brush
is SolidColorBrush))
794
_brush =
_brush
.CloneCurrentValue();
798
if (
_brush
.Transform != null)
800
mat =
_brush
.Transform.Value;
805
_brush
.Transform = new MatrixTransform(mat);
861
SolidColorBrush sA =
_brush
as SolidColorBrush;
876
if (
_brush
is ImageBrush)
997
return
_brush
;
1023
(_brushList != null &&
_brush
== null)) // combine brushlist into one brush
1038
if (_opacity != Utility.GetOpacity(
_brush
))
1040
_brush =
_brush
.CloneCurrentValue();
1042
_brush
.Opacity = _opacity;
1064
else if (
_brush
is SolidColorBrush)
1068
else if (
_brush
is GradientBrush)
1072
else if (
_brush
is ImageBrush)
1076
else if (
_brush
is DrawingBrush)
1116
else if (!(
_brush
is SolidColorBrush))
1121
if (isOpaque && (
_brush
.Transform == null || Utility.IsScaleTranslate(
_brush
.Transform.Value)))
1123
LinearGradientBrush linearBrush =
_brush
as LinearGradientBrush;
1159
if (
_brush
!= null)
1161
SolidColorBrush scb =
_brush
as SolidColorBrush;
1179
if (
_brush
!= null)
1181
_brush =
_brush
.CloneCurrentValue();
1251
DrawingBrush drawingBrush =
_brush
as DrawingBrush;
1292
dc.DrawGeometry(
_brush
, null, geo);
1338
DrawingBrush currentBrush = (DrawingBrush)
_brush
;
1388
if (!(
_brush
is SolidColorBrush))
1459
context.PushOpacityMask(
_brush
);
1534
if (_brushList == null && !Utility.IsTransparent(
_brush
.Opacity))
1538
inheritedOpacity /=
_brush
.Opacity;
1547
context.DrawGeometry(
_brush
, null, geometry);
1768
ImageBrush ib =
_brush
.CloneCurrentValue() as ImageBrush;
1974
GradientBrush g =
_brush
as GradientBrush;
2136
Debug.Assert(b.
_brush
is SolidColorBrush, "SolidColorBrush expected");
2318
ImageBrush ib =
_brush
as ImageBrush;
2459
LinearGradientBrush lbA = this.
_brush
as LinearGradientBrush;
2460
LinearGradientBrush lbB = brushB.
_brush
as LinearGradientBrush;
2548
RadialGradientBrush rbA = this.
_brush
as RadialGradientBrush;
2549
RadialGradientBrush rbB = brushB.
_brush
as RadialGradientBrush;
3361
return
_brush
;
3477
else if (
_brush
!= null)
3479
if (
_brush
is SolidColorBrush)
3483
else if (
_brush
is LinearGradientBrush)
3487
else if (
_brush
is RadialGradientBrush)
3491
else if (
_brush
is ImageBrush)
3495
else if (
_brush
is DrawingBrush)