简体   繁体   中英

How to hide dropdown toggle button in syncfusion

I am working on Syncfusion Xamarin(c# & XAML) Combobox. I am trying to hide the toggle button on the dropdown but I couldn't achieve it and I couldn't find anything on the documentation.

Code

                                <time:CustomComboBox
                                x:Name="type"
                                BorderColor="#a4a4a4"
                                DataSource="{Binding Type, Mode=TwoWay}"
                                DropDownTextSize="14"
                                HeightRequest="45"
                                IsEnabled="{Binding isEnable}"
                                IsSelectedItemsVisibleInDropDown="False"
                                SelectedItem="{Binding DType.Value, Mode=TwoWay}"
                                ShowBorder="False"
                                ShowClearButton="False"
                                SuggestionBoxPlacement="Bottom"
                                TextColor="#8793EF"
                                TextSize="15" />

I tried visibility but it is hiding the entire thing.

We have prepared a sample based on your requirement using DropDownButtonSettings Width & Height property. Please get the sample from the attachments and below are the code snippet.

Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/DropdownToggleButton-1827799984

<time:SfComboBox
                    x:Name="type"
                    BorderColor="#a4a4a4"
                    DataSource="{Binding Type, Mode=TwoWay}"
                    DropDownTextSize="14"
                    HeightRequest="45"
                    IsEnabled="{Binding IsEnable}"
                    IsSelectedItemsVisibleInDropDown="False"
                    SelectedItem="{Binding SelectedValue, Mode=TwoWay}"
                    ShowBorder="False"
                    ShowClearButton="False"
                    SuggestionBoxPlacement="Bottom"
                    TextColor="#8793EF"
                    TextSize="15">
                    <time:SfComboBox.DropDownButtonSettings>
                       <time:DropDownButtonSettings Width="0" Height="0">
                    </time:DropDownButtonSettings>
                  </time:SfComboBox.DropDownButtonSettings>
 </time:SfComboBox>
 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM