<Window x:Class="WPF控件_11_Expander2.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WPF控件_11_Expander2" 
        Icon="public/003540AH4M72.jpg"
        mc:Ignorable="d"
        Title="WPF控件_11_Expander2" Height="450" Width="800">
    <StackPanel>
        <Expander Margin="3" Padding="5" Header="Region One" ExpandDirection="Left" Collapsed="Expander_OnCollapsed">
            <Button Padding="3">Hidden Button One </Button>
        </Expander>

        <Expander Margin="5" Padding="5" Header="Region Two" ExpandDirection="Right">
            <TextBlock TextWrapping="Wrap">
                Lorem ipsum dolor sit amet, consectetur adipiscing elit... 
            </TextBlock>
        </Expander>
        
        <Expander Margin="5" Padding="5" Header="Region Three" ExpandDirection="Up">
            <Button Padding="3">Hidden Button Two </Button>
        </Expander>
    </StackPanel>
</Window>
