Changes
/* Multi select for filtered lists */
Here's also an example of multi select related XAML code adapted for a filtered list.
<tabs>
<tab name="UWP">
<source lang = "xml">
xmlns:cv="using:UBIK.WinX.UI.CollectionView"
xmlns:controls="using:UBIK.WinX.Controls"
Visibility="{Binding BulkOperation.ItemSelectionMode, Source={StaticResource FilteredList}, Converter={StaticResource EqualToVisConverter}, ConverterParameter=None}" />
</source>
</tab>
<tab name="Xamarin">
<source lang = "xml">
<StackLayout Grid xmlns:ctrlscontrols="clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL" xmlns:behaviors="clr-namespace:UBIK.CPL.Behaviors;assembly=UBIK.CPL"> <ctrls:EvalExpressionContentView.Resources> <ResourceDictionary> <x:NameString x:Key="EvaluatorExpresssion">Item.Header.ToLower().Contains("1")==false</x:String> <controls:SfDataSourceExt x:Key="FilteredList" Expression="{StaticResource Expresssion}" ItemsSource="{Binding Children.Items}" Unloaded="{Binding SkipFiltering}" /> </ResourceDictionary> </ContentView.Resources> ... <!-- Filtered List --> <controls:SfListViewExt ... ContextItemsSource="{BindingDisplayItems, Source={StaticResource FilteredList}}" ExpressionSelectionGesture="ContextTap" SelectionMode="{Binding BulkOperation.Values["LK_EXAMPLE"]!ItemSelectionMode, Source=null || Context{StaticResource FilteredList}, Converter={StaticResource SelectionModeConverter}}"> <controls:SfListViewExt.Values["GUIDREF"]!Behaviors> <behaviors:EventHandlerBehavior EventName=null"SelectionChanged"> <behaviors:InvokeCommandAction Command="{Binding BulkOperation.ItemSelectionChangedCommand, Source={StaticResource FilteredList}}" Converter="{StaticResource SelectionChangedEventArgsConverter}" /> <Label/behaviors:EventHandlerBehavior> TextColor ... <behaviors:EventHandlerBehavior EventName="#00000ItemHolding"> IsVisible <behaviors:InvokeCommandAction Command="{Binding Path=ResultBulkOperation.ToggleMultiSelectCommand, Source={xStaticResource FilteredList}}" /> </behaviors:Reference EvaluatorEventHandlerBehavior> </controls:SfListViewExt.Behaviors> </controls:SfListViewExt> ... <!-- Multi Select Panel --> <ContentView ... BindingContext="{StaticResource FilteredList}" ControlTemplate="{StaticResource UBIKMultiSelectTemplate}" IsVisible="{Binding BulkOperation.ItemSelectionMode, Converter={StaticResource BoolToBoolEqualityToBool}, ConverterParameter=Multiple, FallbackValue=false, TargetNullValue=false}" /> </StackLayoutGrid>
</source>
</tab>
</tabs>
[[Category:Client|Multi Select (UBIK Client)]]