Jump to: navigation, search

Changes


HowTo:Implement Custom Filtering

1,472 bytes removed, 08:47, 25 April 2023
/* List control */
<source lang = "xml">
<controls:SelectionBoundListView
x:Name="FilterQueryList" ItemTemplate="{Binding PropertyViewModel.TemplateService[UBIKInlineQueryResultItem]}" ItemsSource="{StaticResource FilterView}" SelectedValue="{Binding PropertyValue}" SelectionMode="Single" Visibility="{Binding PropertyViewModel.FilterQuery, Converter={StaticResource NullObjectToCollapsedConverter}}"> <Interactivity:Interaction.Behaviors> <behaviors:UserSelectionChangedBehavior> <Core:InvokeCommandAction Command="{Binding PropertyViewModel.SetPropertyValueCommand}" CommandParameter="{Binding ElementName=FilterQueryList, Path=SelectedValue}" /> </behaviors:UserSelectionChangedBehavior> </Interactivity:Interaction.Behaviors></controls:SelectionBoundListView>
</source>
</tab>
<source lang="xml">
<controls:SfListViewExt
x:Name="FilterQueryResultList" BackgroundColor="White" IsVisible="{Binding PropertyViewModel.ShowComboBox, Converter={StaticResource BoolToNotBool}, FallbackValue=false, TargetNullValue=false}" ItemSize="60" ItemTemplate="{StaticResource EditorFilterQueryItemTemplate}" ItemsSource="{Binding DisplayItems, Source={StaticResource FilterView}}" SelectedItem="{Binding PropertyViewModel.ValueItem.PropertyValue, Mode=OneWay, Converter={StaticResource GuidPropertyValue}, ConverterParameter={Binding Source={x:Reference FilterQueryResultList}}}" SelectionMode="Single" SelectionBackgroundColor="{StaticResource UBIKAccentColor}" />
</source>
</tab>
85
edits