Jump to: navigation, search

Changes


Property Based Content Filters

54 bytes added, 14:06, 18 September 2025
</tab>
<tab name="Mobile(Xamarin)">
<source lang = "xml">
<Entry
</source>
</tab>
<tab name="Mobile(Xamarin)">
<source lang = "xml">
xmlns:controls="clr-namespace:UBIK.CPL.Controls;assembly=UBIK.CPL"
Note that several elements are required for this customization to work:
* '''SelectedValuePath''' informs the control of which property should be supplied to the command as a filter criteria. This should match what is supplied in your KeyValueParameter.
* '''DisplayMemberPath'''/'''ItemDisplayBinding''' informs the control of which property should be visualized as the displaytext of your selection. Note that this is a binding on Xamarin Mobile clients only.* In UWP: '''PlaceholderText''' binds to the same value as your SelectedValueExt to display the current selected item. This is a workaround for a failure of the ComboBox control to correctly display an active selection when the control is rendered. In XamarinMobile clients, a secondary label is required to display a placeholder text when the Picker's SelectedIndex is null.
Furthermore, this approach makes use of the '''Children.UpdatePropertyFiltersCommand''', which uses the following parameters:
Simply add the strings as content of the controls:ComboBoxExt.
</tab>
<tab name="Mobile(Xamarin)">
<source lang = "xml">
<Picker.ItemsSource>
The above controls:ComboBoxExt and controls:PickerExt examples can be converted to filter GUID values as follows:
<source lang = "xml">
Mobile(Xamarin):
<controls:PickerExt
Or in certain cases, can be combined with the filter input to trigger immediately:
<source lang = "xml">
Mobile(Xamarin):
<Entry.Behaviors>
[[Category:2.6.1|Property Based Content Filters]]
[[Category:Mobile|Property Based Content Filters]]
[[Category:Version 1.2|Property Based Content Filters]]
[[Category:WinX|Property Based Content Filters]]
[[Category:Mobile|Property Based Content Filters]]
686
edits