Preventing Expansion

You can prevent a C1Expander control from being expanded by setting the IsExpandable property to False in Blend, in XAML, or in code.

At Design Time in Blend

To set the IsExpandable property to False in Blend, complete the following steps:

1.   Click the C1Expander control once to select it.

2.   Under the Properties tab, 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 <c1:C1Expander> tag so that it appears similar to the following:

 

<c1:C1Expander IsExpandable="False" Width="150" Height="55">

In Code

To set the IsExpanded property to True in code, complete the following steps:

1.   Add x:Name="C1Expander1" to the <c1:C1Expander> tag so that the control will have a unique identifier for you to call in code. 

2.   Enter Code view and add the following code beneath the InitializeComponent() method:

      Visual Basic

      C#

3.   Run the program.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.