{{Hint|The Borders in the example are not mandatory. They serve as indicators of whether a filter is currently applied on the result list. The PlaceHolderText is optional as well.}}
=== UpdatePropertyFiltersCommand {{Version/XamarinSince|1.2}} ===
The above mentioned two way binding doesn't always work well with all controls and complex bindings. In such cases, the alternative is to use the UpdatePropertyFiltersCommand to supply the filter criteria.
<tabs>
<tab name="Xamarin">
<source lang = "xml">
<Grid xmlns:ctrls="clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL">
<ctrls:PickerExt
x:Name="Filter"
ItemsSource="{Binding Properties.AllItems[QUERY].LinkedLevel.Children.Items}"
ItemDisplayBinding="{Binding Header}"
SelectionChangedCommand="{Binding Children.UpdatePropertyFiltersCommand}"
SelectedValuePath="UID"
SelectedValue="{Binding Children.Filters[STA].Value, Mode=OneWay}">
<ctrls:PickerExt.SelectionChangedCommandParameter>
<classes:KeyValueList>
<classes:KeyValueParameter Key="ClearPropertyFilters" Value="false" />
<classes:KeyValueParameter Key="STA" Value="{Binding Path=SelectedItem.UID, Source={x:Reference Filter}}" />
</classes:KeyValueList>
</ctrls:PickerExt.SelectionChangedCommandParameter>
</ctrls:PickerExt>
</Grid>
</source>
</tab>
<tab name="UWP">
Not yet available.
</tab>
</tabs>
The example above uses a UBIK.CPL.Controls.PickerExt control to display a list of query result objects (through the "QUERY" property's LinkedLevel). The UID of the selected object is then passed on as a part of the command parameter and later used as a filter criterion to filter for objects that have their "STA" property value containing the UID string.
* ClearPropertyFilters: Clear out all existing filters at the current level before executing the command;
* All other parameters: Used as filter criteria where the Keys are the names of the properties by which you want to filter.
{{Category/Version|2.6.1}}
[[Category:2.6.1|Property Based Content Filters]]
[[Category:WinX|Property Based Content Filters]]
[[Category:Xamarin|Property Based Content Filters]]
[[Category:Version 1.2|Property Based Content Filters]]