Перейти к основному содержимому
Версия: 11.0.0


The expander control has a header area (always visible) and a collapsible content section that can contain a single child control.

Useful Properties

You will probably use these properties most often:

Expander.HeaderDefines what appears in the header area.


<Expander VerticalAlignment="Top">
Hidden Search
<Grid RowDefinitions="*,*" ColumnDefinitions="150,*">
<TextBlock Grid.Row="0" Grid.Column="0"
<TextBox Grid.Row="0" Grid.Column="1"
Watermark="Search text" Width="200" />
<TextBlock Grid.Row="1" Grid.Column="0"
VerticalAlignment="Center">Case sensitive?</TextBlock>
<CheckBox Grid.Row="1" Grid.Column="1" />

More Information

к сведению

For the complete API documentation about this control, see here.

к сведению

View the source code on GitHub Expander.cs