Jump to: navigation, search

Changes


XAML Tips

510 bytes added, 07:38, 9 April 2020
* AutoCommit (optional, defaults to false): When set to true, the change(s) will be saved to the local cache and the database, and then committed to the server.
[[Category:Client|XAML Tips]][[Category:WinX|XAML Tips]]
=== Disable FilloutCriteria ===
</source>
=== Remember scroll positions of list views {{Version/WinXSince|3.6}} ===
==== Version 3.8 {{Version/WinXSince|3.8}} ====
Starting from this version,
* The precision of scroll position remembering is improved(by pixel offsets instead of by items);
* It also works for other scrollable lists (instead of just for content object lists).
<br />
To enable this feature,
* A SelectionBoundListView must be used. Its {{UBIK}} namespace is <code>UBIK.WinX.Controls</code>;
* The SelectionBoundListView's <code>RememberScrollPosition</code> property is not set to "false"; (It's "true" by default;)
* The SelectionBoundListView's <code>x:Name</code> property must be unique.
 
==== Version 3.6 & 3.7 {{Version/WinXSince|3.6}} ====
The UBIK-Client does include a function to remember the position in a list (ListView) when navigating away from it. This function is only available when the list (ListView) has a unique name as a property (x:Name). When browsing back to the previously visited list UBIK scrolls back to the last position. The function does not save scroll positions over different sessions.
Implementing the function to remember the scroll position in a ListView one has to consider that the list elements (Children) could depend on a other UI-element. If the list elements do depend on a other UI-elemente, this element has to be created above the ListView in the XAML.
This single value is then passed as the command parameter instead of the entire KeyValueList.
[[Category:Client|XAML Tips]][[Category:WinX|XAML Tips]]
=== SetPropertyValueCommand {{Version/WinXSince|3.6}} ===