Expander.IsExpanded Property

 

Gets or sets whether the Expander content window is visible.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

[<BindableAttribute(true)>]
member IsExpanded : bool with get, set

Property Value

Type: System.Boolean

true if the content window is expanded; otherwise, false. The default is false.

The following example shows how to set the IsExpanded property.

No code example is currently available or this language may not be supported.
<Expander Name ="myExpanderIsExpanded" IsExpanded="True"  
          Header ="expanderTitle" Content="expanderContent"/>

.NET Framework
Available since 3.0
Return to top
Show: