// Copyright (c) The Perspex Project. All rights reserved. // Licensed under the MIT license. See licence.md file in the project root for full license information. namespace Perspex.Media { /// /// Paints an area with an . /// public class VisualBrush : TileBrush { /// /// Defines the property. /// public static readonly StyledProperty VisualProperty = PerspexProperty.Register("Visual"); /// /// Initializes a new instance of the class. /// public VisualBrush() { } /// /// Initializes a new instance of the class. /// /// The visual to draw. public VisualBrush(IVisual visual) { Visual = visual; } /// /// Gets or sets the visual to draw. /// public IVisual Visual { get { return GetValue(VisualProperty); } set { SetValue(VisualProperty, value); } } } }