/// <summary> /// Parses a MatrixTransform element. /// </summary> MatrixTransform ParseMatrixTransform() { AssertElement("MatrixTransform"); MatrixTransform transform = new MatrixTransform(); while (MoveToNextAttribute()) { switch (this.reader.Name) { case "Matrix": transform.Matrix = Matrix.Parse(this.reader.Value); break; case "x:Key": transform.Key = this.reader.Value; break; default: UnexpectedAttribute(this.reader.Name); break; } } MoveBeyondThisElement(); return transform; }
/// <summary> /// Initializes a new instance of the <see cref="RadialGradientBrush"/> class. /// </summary> public RadialGradientBrush() { Opacity = 1; Transform = new MatrixTransform(); }
/// <summary> /// Initializes a new instance of the <see cref="LinearGradientBrush"/> class. /// </summary> public LinearGradientBrush() { Opacity = 1; Transform = new MatrixTransform(); }
/// <summary> /// Initializes a new instance of the <see cref="ImageBrush"/> class. /// </summary> public ImageBrush() { Opacity = 1; Transform = new MatrixTransform(); }