public static Brush AsMediaBrushTiled(this InkedPattern pattern) => new ImageBrush(pattern.AsBitmapSource()) { TileMode = TileMode.Tile, Stretch = Stretch.None, AlignmentX = AlignmentX.Left, AlignmentY = AlignmentY.Top, ViewportUnits = BrushMappingMode.Absolute, Viewport = new Rect(0, 0, pattern.Width, pattern.Height) };
public static Brush AsMediaBrush(this InkedPattern pattern) => new ImageBrush(pattern.AsBitmapSource());