Changes

XAML Tips

327 bytes added, 07:36, 19 June 2019
/* Remember Scroll Position of ListView */
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.
 
<source lang = "xml">
<DataTemplate xmlns:behaviors="using:UBIK.WinX.Behaviors">
...
<ListView>
<Interactivity:Interaction.Behaviors>
<behaviors:FirstVisibleItemPersistenceBehavior FirstVisibleItems="{Binding ScrollItems}" />
</Interactivity:Interaction.Behaviors>
</ListView>
</source>