
How to display expander List like line status and need display the line staus details inside expdender if lick line status .
how can implement above like attached image

How to display expander List like line status and need display the line staus details inside expdender if lick line status .
how can implement above like attached image
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tuhin PaulPosted Apr 18, 2023, 3:24 PM
code that demonstrates how to create a TreeView with expandable items
LineStatuses is the collection of line statuses, and each status has a Name property and a Details property, which is a collection of strings representing its details. The HierarchicalDataTemplate is used to define the template for each item in the tree, and the TreeView control automatically generates the expanders for each item.
Tuhin PaulPosted Apr 18, 2023, 3:22 PM
To display a list of items with expandable details, you can use the TreeView control in WPF. The TreeView control allows you to display hierarchical data in a tree-like structure, where each item can be expanded or collapsed to show or hide its child items. To implement this in your application, you can create a TreeView control and bind it to a collection of items that represent your line statuses. Each item in the collection should have a property that represents its details, which will be displayed in the expander when the item is expanded.
Venkat GovindPosted Apr 18, 2023, 2:49 PM
i tried also not able achive as expecting task
Raj KumarPosted Apr 18, 2023, 1:39 PM
This might be helpful for you:
https://www.c-sharpcorner.com/UploadFile/mahesh/using-xaml-expander-in-wpf/