Jump to: navigation, search

Changes


HowTo:Implement Custom Filtering

66 bytes added, 30 July
added a subsection in persistence on pickers
</tabs>
<br>
 
 
 
 
 
<br>
 
 
 
 
 
{{Hint|Note that the above strings make use of the .Equals() method, which is an alternate option to the more commonly seen <nowiki>'Item.Content.MetaDefinition.UID.ToString().ToLower()==...</nowiki>'}}
<br><br>
 
 
 
 
 
{{UnderConstructionEnd}}
[[Category:Client|Custom Filtering]][[Category:Filtering|Custom Filtering]][[Category:Styling|Custom Filtering]][[Category:WinX|Custom Filtering]][[Category:XAML|Implement Custom Filtering]][[Category:Xamarin|Custom Filtering]]
== Adjustments ==
+&quot;||&quot;+
</source>
 
{{Hint|Note how the EvalExpressionParameters have been adapted to reference a StoredProfileParameter, rather than the input control.}}
</tabs>
 
=== Item Selection ===
Filter value persistence works also when the user input method is to select an item from a picker.
 
<tabs>
<tab name="Xamarin">
<source lang = "xml">
<controls:PickerExt
x:Name="ExamplePicker"
ItemsSource="{Binding Children.Items[0].PropertyItems[PROPERTY].MetaProperty.SelectiveList, Converter={StaticResource SelectiveListToItems}, TargetNullValue='', FallbackValue=''}"
ItemDisplayBinding="{Binding DisplayText}"
SelectedValuePath="Value"
SelectedValue="{Binding StoredProfileParameters[key]}"
SelectionChangedCommand="{Binding StoreProfileParameterCommand}"
SelectionChangedCommandParameter="{Binding SelectedItem.Value, Source={x:Reference ExamplePicker}, StringFormat='key={0}'}"/>
</source>
</tab>
</tabs>
 
{{UnderConstructionEnd}}
[[Category:Client|Custom Filtering]][[Category:Filtering|Custom Filtering]][[Category:Styling|Custom Filtering]][[Category:WinX|Custom Filtering]][[Category:XAML|Implement Custom Filtering]][[Category:Xamarin|Custom Filtering]]
== Known Issues ==
** If filtering a GUID property, ensure the same values are compared; DisplayString if the user is inputting readable text, UID if the user has selected an item from a list.
[[Category:Client|Custom Filtering]][[Category:Filtering|Custom Filtering]][[Category:Styling|Custom Filtering]][[Category:WinX|Custom Filtering]][[Category:XAML|Implement Custom Filtering]][[Category:Xamarin|Custom Filtering]]
== See also ==
696
edits