13 writes to _brush
ReachFramework (13)
AlphaFlattener\BrushProxy.cs (13)
367
_brush
= brush;
414
_brush
= _brush.CloneCurrentValue();
449
_brush
= tb;
473
_brush
= tb;
494
_brush
= lb;
518
_brush
= rb;
791
_brush
= _brush.CloneCurrentValue();
1019
_brush
= BuildBrush();
1034
_brush
= _brush.CloneCurrentValue();
1175
_brush
= _brush.CloneCurrentValue();
1349
_brush
= newBrush;
2528
bp.
_brush
= b;
2587
bp.
_brush
= b;
86 references to _brush
ReachFramework (86)
AlphaFlattener\BrushProxy.cs (86)
384
if (
_brush
!= null)
386
str = str +
_brush
.GetType();
412
if (! (
_brush
is SolidColorBrush) && ! Utility.IsIdentity(
_brush
.RelativeTransform))
414
_brush =
_brush
.CloneCurrentValue();
417
Matrix mat = Utility.MergeTransform(
_brush
.Transform,
_brush
.RelativeTransform, bounds);
419
_brush
.Transform = new MatrixTransform(mat);
420
_brush
.RelativeTransform = Transform.Identity;
426
if (
_brush
is TileBrush)
428
TileBrush tb =
_brush
as TileBrush;
477
if (
_brush
is LinearGradientBrush)
479
LinearGradientBrush lb =
_brush
as LinearGradientBrush;
498
if (
_brush
is RadialGradientBrush)
500
RadialGradientBrush rb =
_brush
as RadialGradientBrush;
531
if (
_brush
!= null)
569
if ((_opacityMask != null) && (
_brush
!= null))
605
if (
_brush
is SolidColorBrush)
607
SolidColorBrush y =
_brush
as SolidColorBrush;
612
if (
_brush
is GradientBrush)
614
GradientBrush y =
_brush
as GradientBrush;
627
if (
_brush
is TileBrush)
629
TileBrush tb =
_brush
as TileBrush;
646
if (
_brush
is ImageBrush)
648
ImageBrush ib =
_brush
as ImageBrush;
658
if (
_brush
is DrawingBrush)
660
DrawingBrush db =
_brush
as DrawingBrush;
674
if (
_brush
!= null)
676
Debug.Assert(false, "IsOpaque(" +
_brush
.GetType() + ") not handled");
694
if (
_brush
is SolidColorBrush)
696
SolidColorBrush y =
_brush
as SolidColorBrush;
703
if (
_brush
is GradientBrush)
705
GradientBrush y =
_brush
as GradientBrush;
720
if (
_brush
is DrawingBrush)
727
DrawingBrush db =
_brush
as DrawingBrush;
748
if (
_brush
is ImageBrush)
755
ImageBrush ib =
_brush
as ImageBrush;
770
if (
_brush
!= null)
772
Debug.Assert(false, "IsTransparent not handled " +
_brush
.GetType());
789
if (!(
_brush
is SolidColorBrush))
791
_brush =
_brush
.CloneCurrentValue();
795
if (
_brush
.Transform != null)
797
mat =
_brush
.Transform.Value;
802
_brush
.Transform = new MatrixTransform(mat);
855
SolidColorBrush sA =
_brush
as SolidColorBrush;
870
if (
_brush
is ImageBrush)
991
return
_brush
;
1017
(_brushList != null &&
_brush
== null)) // combine brushlist into one brush
1032
if (_opacity != Utility.GetOpacity(
_brush
))
1034
_brush =
_brush
.CloneCurrentValue();
1036
_brush
.Opacity = _opacity;
1058
else if (
_brush
is SolidColorBrush)
1062
else if (
_brush
is GradientBrush)
1066
else if (
_brush
is ImageBrush)
1070
else if (
_brush
is DrawingBrush)
1110
else if (!(
_brush
is SolidColorBrush))
1115
if (isOpaque && (
_brush
.Transform == null || Utility.IsScaleTranslate(
_brush
.Transform.Value)))
1117
LinearGradientBrush linearBrush =
_brush
as LinearGradientBrush;
1153
if (
_brush
!= null)
1155
SolidColorBrush scb =
_brush
as SolidColorBrush;
1173
if (
_brush
!= null)
1175
_brush =
_brush
.CloneCurrentValue();
1245
DrawingBrush drawingBrush =
_brush
as DrawingBrush;
1286
dc.DrawGeometry(
_brush
, null, geo);
1332
DrawingBrush currentBrush = (DrawingBrush)
_brush
;
1382
if (!(
_brush
is SolidColorBrush))
1454
context.PushOpacityMask(
_brush
);
1529
if (_brushList == null && !Utility.IsTransparent(
_brush
.Opacity))
1533
inheritedOpacity /=
_brush
.Opacity;
1542
context.DrawGeometry(
_brush
, null, geometry);
1763
ImageBrush ib =
_brush
.CloneCurrentValue() as ImageBrush;
1969
GradientBrush g =
_brush
as GradientBrush;
2131
Debug.Assert(b.
_brush
is SolidColorBrush, "SolidColorBrush expected");
2313
ImageBrush ib =
_brush
as ImageBrush;
2455
LinearGradientBrush lbA = this.
_brush
as LinearGradientBrush;
2456
LinearGradientBrush lbB = brushB.
_brush
as LinearGradientBrush;
2544
RadialGradientBrush rbA = this.
_brush
as RadialGradientBrush;
2545
RadialGradientBrush rbB = brushB.
_brush
as RadialGradientBrush;
3359
return
_brush
;
3475
else if (
_brush
!= null)
3477
if (
_brush
is SolidColorBrush)
3481
else if (
_brush
is LinearGradientBrush)
3485
else if (
_brush
is RadialGradientBrush)
3489
else if (
_brush
is ImageBrush)
3493
else if (
_brush
is DrawingBrush)