Assembly: PresentationCore (in PresentationCore.dll)
public sealed class VisualBrush : TileBrush
public ref class VisualBrush sealed : TileBrush
[<Sealed>] type VisualBrush = class inherit TileBrush end
Public NotInheritable Class VisualBrush Inherits TileBrush
Gets a value that indicates whether the object can be made unmodifiable. (Inherited from Freezable.)
Gets a value that indicates whether the object is currently modifiable. (Inherited from Freezable.)
Gets a value that indicates whether this instance is currently sealed (read-only).(Inherited from DependencyObject.)
Gets or sets the transformation that is applied to the brush using relative coordinates. (Inherited from Brush.)
Gets or sets the transformation that is applied to the brush. This transformation is applied after the brush's output has been mapped and positioned. (Inherited from Brush.)
Gets or sets the brush's content.
Creates a modifiable clone of this, making deep copies of this object's values.
Creates a modifiable clone of thisobject, making deep copies of this object's current values. Resource references, data bindings, and animations are not copied, but their current values are.
Makes the current object unmodifiable and sets its property to true. (Inherited from Freezable.)
Re-evaluates the effective value for the specified dependency property(Inherited from DependencyObject.)
Returns the local value of a dependency property, if it exists. (Inherited from DependencyObject.)
Sets the value of a dependency property without changing its value source. (Inherited from DependencyObject.)
Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.)
Returns a value that indicates whether serialization processes should serialize the value for the provided dependency property.(Inherited from DependencyObject.)
Creates a string representation of this object based on the specified culture-specific formatting information. (Inherited from Brush.)
Create a new Visual and use it to set the property of the .
When you define a new for a and that Visual is a UIElement (such as a panel or control), the layout system runs on the UIElement and its child elements when the property is set to true. However, the root UIElement is essentially isolated from the rest of the system; styles, storyboards, and external layout can't permeate this boundary. Therefore, you should explicitly specify the size of the root UIElement, because its only parent is the and therefore it cannot automatically size itself to the area being painted. For more information about layout in Windows Presentation Foundation (WPF), see the Layout.
Updates to the visual tree of a BitmapEffect is in the brush's parent chain. You can workaround this limitation by forcing an update of the scene on the object above the effect. You can call InvalidateVisual or include an animation to force a scene update.will not propagate if a
Freezable Features: Because it inherits from the Freezable class, the class provides several special features: objects can be declared as and shared among multiple objects. For more information about the different features provided by Freezable objects, see the Freezable Objects Overview.
Available since 3.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.