Share via


AdornerPanel.IsContentFocusable Property

Gets or sets the IsContentFocusable value.

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

Syntax

'Declaration
Public Property IsContentFocusable As Boolean
    Get
    Set
public bool IsContentFocusable { get; set; }
public:
property bool IsContentFocusable {
    bool get ();
    void set (bool value);
}
member IsContentFocusable : bool with get, set
function get IsContentFocusable () : boolean
function set IsContentFocusable (value : boolean)

Property Value

Type: System.Boolean
true if the adorner panel's content may receive focus; otherwise, false. The default is false.

Dependency Property Information

Identifier field

IsContentFocusableProperty

Metadata properties set to true

None

Remarks

Use the IsContentFocusable property to retain events on the design surface. This is useful if your adorner requires events that apply to controls that have focus. For example, for an adorner panel to receive the MouseMove event, set the IsContentFocusable property to true.

By default, adorners do not receive focus. You can change the value of this property so that they do. This is useful if your adorner requires keyboard input from the user.

Note

Setting the IsContentFocusable property to true may interfere with selection handling.

.NET Framework Security

See Also

Reference

AdornerPanel Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Adorner Architecture

Feature Providers and Feature Connectors