Preventing Expansion
You can prevent a C1Expander control from being expanded by setting the IsExpandable property to False in the Properties window, in XAML, or in code.
At Design Time
To set the IsExpandable property to False, complete the following steps:
1. Click the C1Expander control once to select it.
2. In the Properties window, locate the IsExpandable check box and then deselect it.
In XAML
To set the IsExpandable property to False in XAML, add IsExpandable="False" to the <c1ext:C1Expander> tag so that it appears similar to the following:
<c1ext:C1Expander IsExpandable="False" Width="150" Height="55">
In Code
To set the IsExpanded property to True in code, complete the following steps:
1. Enter Code view and add the following code beneath the InitializeComponent() method:
C1Expander1.IsExpandable = False
•C#
c1Expander1.IsExpandable = false;
2. Run the program.