ComponentOne Basic Library for UWP
Basic Library Overview / DropDown for UWP / DropDown for UWP Task-Based Help / Hiding the Drop-Down Arrow
In This Topic
    Hiding the Drop-Down Arrow
    In This Topic

    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.

    In XAML

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

    Markup
    Copy Code
    <XamlC1DropDown Height="30" Name="c1dropdown1" Width="100" ShowButton="False" />
    

    In Code

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

    C#
    Copy Code
    c1dropdown1.ShowButton = false;
    
    See Also