Hiding the Drop-Down Arrow

By default, when you add the C1DropDown control to an application, the drop-down arrow, the ToggleButton, is visible. However, if you choose you can hide the drop-down arrow by setting the ShowButton property as in the following steps.

At Design Time in Blend

To hide the drop-down arrow, complete the following steps:

1.   Click the C1DropDown control once to select it.

2.   Navigate to the Properties window and clear the ShowButton check box.

This will hide the drop-down arrow on the control.

In XAML

To hide the drop-down arrow, add ShowButton="False" to the <c1:C1DropDown> tag so that it appears similar to the following:

<c1:C1DropDown Height="30" Name="c1DropDown1" Width="100" ShowButton="False" />

In Code

To hide the drop-down arrow, add the following code to your project:

      Visual Basic

      C#

This will hide the drop-down arrow on the control.

What You've Accomplished

Run the application. Observe that the drop-down arrow no longer appears on the C1DropDown control.


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