Expander.IsExpanded Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets whether the Expander content window is visible.

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

<BindableAttribute(True)>
Public Property IsExpanded As Boolean

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.

myExpanderIsExpanded.IsExpanded = True
<Expander Name ="myExpanderIsExpanded" IsExpanded="True"  
          Header ="expanderTitle" Content="expanderContent"/>

.NET Framework
Available since 3.0
Return to top
Show: