tags:

views:

2435

answers:

1

When using the WPF Expander control it is displayed with the default "Up" and "Down" arrow keys. Is there any way to hide those up and down arrows?

UPDATE:

I managed to remove the arrows by creating a ControlTemplate but now the expanding ability is gone also:

<ContentPresenter Content="{TemplateBinding Expander.Header}"></ContentPresenter>
            <ContentPresenter Content="{TemplateBinding Expander.Content}"></ContentPresenter>



<Expander Template="{StaticResource ExpanderControlTemplate}" IsExpanded="False" Cursor="Hand">             

                <Expander.Header>
                <Border Style="{StaticResource FeedTitleStyle}">
                <DockPanel Width="Auto">
                    <TextBlock DockPanel.Dock="Left" FontSize="16" Text="IronRuby in Action!" />                   
                </DockPanel>           

            </Border>                 
                </Expander.Header>
                <Expander.Content>                    
                    <TextBlock Text="This is the decriprion!" />
                </Expander.Content>

            </Expander>
+8  A: 
rmoore
Awesome reply man! And also thanks for the Mole tool I did not know about Mole!
azamsharp
+1 for a solid answer that hasn't garnered the attention or rep it deserves. :)
Greg D
Is there any way to bind the IsEnabled of the arrow to a boolean value, I am looking for a neat solution, if there isn't any I'll just waive it.
Shimmy