Posted 2 August 2023, 8:08 pm EST
Hi Vijay,
We are glad to let you know that the ShowExpandIcon property has been added to the C1AccordionPage in the latest 2023v2(611) release. FYI, this property only allows showing/hiding the expand icon for specific pages and does not have an effect on the expand/collapse functionality of the pages.
To stop a page from changing the expand-collapse state, you can handle the PageExpandStateChanging event of the C1Accordion.
private void C1Accordion1_PageExpandStateChanging(object? sender, C1.Win.Accordion.PageExpandStateChangingEventArgs e)
{
if (e.Page.ShowExpandIcon == C1.Win.Accordion.IconsDisplayMode.HideAlways)
e.Cancel = true;
}
To install the latest NuGet package, you can use the link below.
(https://www.nuget.org/packages/C1.Win.Accordion/6.0.20232.611)
Best Regards,
Kartik