|
| 1 | +<?xml version="1.0" encoding="utf-8" ?> |
| 2 | +<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
| 4 | + xmlns:editors="clr-namespace:Syncfusion.Maui.Inputs;assembly=Syncfusion.Maui.Inputs" |
| 5 | + xmlns:local="clr-namespace:SfComboBox" |
| 6 | + x:Class="SfComboBox.MainPage"> |
| 7 | + |
| 8 | + <ContentPage.BindingContext> |
| 9 | + <local:SocialMediaViewModel /> |
| 10 | + </ContentPage.BindingContext> |
| 11 | + |
| 12 | + |
| 13 | + <StackLayout Padding="30" > |
| 14 | + <editors:SfComboBox HeightRequest="40" |
| 15 | + WidthRequest="300" |
| 16 | + IsEditable="True" |
| 17 | + MaxDropDownHeight="200" |
| 18 | + ItemsSource="{Binding SocialMedias}" |
| 19 | + ShowDropdownHeaderView="True" |
| 20 | + DisplayMemberPath="Name" |
| 21 | + DropdownHeaderViewHeight="50" |
| 22 | + Margin="50"> |
| 23 | + <editors:SfComboBox.DropdownHeaderView> |
| 24 | + <StackLayout BackgroundColor="#f0f0f0" > |
| 25 | + <Label FontSize="20" Text="Header View" TextColor="Red" /> |
| 26 | + </StackLayout> |
| 27 | + </editors:SfComboBox.DropdownHeaderView> |
| 28 | + </editors:SfComboBox> |
| 29 | + |
| 30 | + <editors:SfComboBox HeightRequest="40" |
| 31 | + WidthRequest="300" |
| 32 | + IsEditable="True" |
| 33 | + MaxDropDownHeight="200" |
| 34 | + ItemsSource="{Binding SocialMedias}" |
| 35 | + ShowDropdownFooterView="True" |
| 36 | + DisplayMemberPath="Name" |
| 37 | + DropdownFooterViewHeight="50"> |
| 38 | + <editors:SfComboBox.DropdownFooterView> |
| 39 | + <StackLayout BackgroundColor="#f0f0f0" > |
| 40 | + <Label FontSize="20" Text="Footer View" TextColor="Red" /> |
| 41 | + </StackLayout> |
| 42 | + </editors:SfComboBox.DropdownFooterView> |
| 43 | + </editors:SfComboBox> |
| 44 | + </StackLayout> |
| 45 | + |
| 46 | +</ContentPage> |
0 commit comments