---
title: "Comment by Katherine Hambley on \"Three ways to implement an accordion control\" | Hashnode"
description: "Do you have any ideas for adding a toggle icon, like an up/down arrow, which toggles when expanded/collapsed, in the header content?"
url: "https://hashnode.com/posts/three-ways-to-implement-an-accordion-control/64e3385aa0040cf7f945e171/comment/6658b22cbcbe68f75d691946"
---

[Discussion](https://hashnode.com/posts/three-ways-to-implement-an-accordion-control/64e3385aa0040cf7f945e171)

Comment [Three ways to implement an accordion control](https://hashnode.com/posts/three-ways-to-implement-an-accordion-control/64e3385aa0040cf7f945e171)

[Katherine Hambley](https://hashnode.com/@superdesigngirl)

[May 30, 2024](https://hashnode.com/posts/three-ways-to-implement-an-accordion-control/64e3385aa0040cf7f945e171/comment/6658b22cbcbe68f75d691946)

Do you have any ideas for adding a toggle icon, like an up/down arrow, which toggles when expanded/collapsed, in the header content?

[Julian Ewers-Peters](https://hashnode.com/@ewerspej)

[Jun 9, 2024](https://hashnode.com/posts/three-ways-to-implement-an-accordion-control/64e3385aa0040cf7f945e171/comment/6658b22cbcbe68f75d691946#reply-66655620a17b731b97a6a871)

Sorry for the late reply, I always miss the notifications.

You can place an image in the header of the control and use DataTriggers with a binding to the `IsExpanded` property. Inside the triggers you can then define setters that change the `Source` property of the image based on the value of the `IsExpanded` property.

Hope this helps.
