Changes
/* Persisting Filter Values */
One of the drawbacks of this method of filtering is the inability for the UI to 'remember' user inputs when they navigate away from the page. This is because this implementation of dynamic filters exists solely on the UI thread (that is, is defined in XAML only with no actual connection to the data, opposite to [[Property_Based_Content_Filters]], for example), which is re-rendered according to the xaml definition every time the page is loaded. This section describes how to implement a limited solution to this issue, the limitation being that values can currently only be persisted during the 'session', and are lost when the user closes the client.
This solution involves use of the StoreProfileParametersCommand StoreProfileParameterCommand to create key-value pairs (a simple list of items made up of a name and a value), which can then be read using the 'StoredProfileParameters[key]'. The StoreProfileParameterCommand accepts a CommandParameter with the format 'key=value', where 'key' represents the name of the key-value pair that can be used to reference it later (in the case below, "name"), and 'value' represents what string should be returned by referencing it (in this case, the Text attribute of the text field control).
When a user completes their input, we use the StoreProfileParametersCommand StoreProfileParameterCommand to create or update a key-value pair associated with a particular filter, instead of passively reading the value from the input as was done previously.
Furthermore, the associated StoredProfileParameter is fed back to the input control so that if any value is set for that particular key (ie. if a filter value has been created), it will be displayed on the input control. Otherwise, the input control will be reset when next loading the page, as was previously the case with dynamic filtering, whereas the StoredProfileParameter will be persisted, leading to a mismatch between the UI and filtering state.
<tab name="UWP">
<source lang = "xml">
<TextBox x:Name="NameInput" Text="{Binding StoredProfileParameterStoredProfileParameters[name]}">
<interactivity:Interaction.Behaviors>
<core:EventTriggerBehavior EventName="LostFocus">
{{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 ==