Changes

HowTo:Implement Custom Filtering

901 bytes added, 07:06, 21 April 2023
/* ListView control */
<controls:SelectionBoundListView
x:Name="FilterQueryList"
ItemContainerStyle="{StaticResource UBIKLightListItem}"
ItemTemplate="{Binding PropertyViewModel.TemplateService[UBIKInlineQueryResultItem]}"
ItemsSource="{StaticResource FilterViewAlleView}" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollMode="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollMode="Enabled"
SelectedValue="{Binding PropertyValue}"
SelectedValuePath="UID"
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>
89
edits