W
W
WayMax2018-12-17 10:48:14
WPF
WayMax, 2018-12-17 10:48:14

How to remove icon in Expander control in WPF?

I want to make a custom header for the Expander control:
1. centered text - done
2. remove the circle icon with an arrow - Google couldn't help with this, those examples that I found just don't work.
5c1754a686d4c899492848.png

<Expander Background="Gray" IsExpanded="True" VerticalAlignment="Top" HorizontalAlignment="Stretch">
    <Expander.Header>
        <TextBlock Text="Expander Title" TextAlignment="Center"/>
    </Expander.Header>
</Expander>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tex0, 2018-12-17
@WayMax

Here is a good example of a custom expander. Read carefully and adapt for yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question