Jump to: navigation, search

Changes


HowTo:Implement Custom Filtering

921 bytes added, 06:26, 25 April 2023
/* ListView control */
== ListView control ==
The ListView is for using the filtered results, in this example a SelectionBoundListView is used but could also be any other control list view.
<tabs>
<tab name="UWP">
<source lang = "xml">
<controls:SelectionBoundListView
</controls:SelectionBoundListView>
</source>
</tab>
 
<tab name="Xamarin">
<source lang="xml">
<controls:SfListViewExt
x:Name="FilterQueryResultList"
Grid.Row="1"
BackgroundColor="White"
IsVisible="{Binding PropertyViewModel.ShowComboBox, Converter={StaticResource BoolToNotBool}, FallbackValue=false, TargetNullValue=false}"
ItemSize="60"
ItemTemplate="{StaticResource EditorFilterQueryItemTemplate}"
ItemsSource="{Binding DisplayItems, Source={StaticResource AlleView}}"
SelectedItem="{Binding PropertyViewModel.ValueItem.PropertyValue, Mode=OneWay, Converter={StaticResource GuidPropertyValue}, ConverterParameter={Binding Source={x:Reference FilterQueryResultList}}}"
SelectionMode="Single"
SelectionBackgroundColor="{StaticResource UBIKAccentColor}" />
</source>
</tab>
</tabs>
89
edits