Share via


DesignerView.IsContentHitTestVisible Property

Gets or sets whether the content of the DesignerView is hit-tested and can receive mouse and keyboard input.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Property IsContentHitTestVisible As Boolean
'Usage
Dim instance As DesignerView 
Dim value As Boolean 

value = instance.IsContentHitTestVisible

instance.IsContentHitTestVisible = value
public bool IsContentHitTestVisible { get; set; }
public:
property bool IsContentHitTestVisible {
    bool get ();
    void set (bool value);
}
public function get IsContentHitTestVisible () : boolean 
public function set IsContentHitTestVisible (value : boolean)

Property Value

Type: System.Boolean
true if the DesignerView content is hit-tested; otherwise, false. The default is false.

Remarks

By default, content that is contained within DesignerView is not hit testable and relies on tools and tasks for user input. Set IsContentHitTestVisible to true to override this behavior and enable direct interaction with the contents of the designer view.

.NET Framework Security

See Also

Reference

DesignerView Class

DesignerView Members

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture