Removed ListView animations

This commit is contained in:
Divyansh Srivastava 2020-04-20 22:44:31 -07:00
parent aa271423f9
commit 1d4b834204
2 changed files with 9 additions and 0 deletions

View file

@ -32,6 +32,14 @@
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
<Style x:Key="ListViewNoAnimations" TargetType="ListView">
<Setter Property="ItemContainerTransitions">
<Setter.Value>
<TransitionCollection/>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="IconOnlyButton" TargetType="Button">
<Setter Property="Background" Value="{ThemeResource ButtonRevealBackground}" />
<Setter Property="Foreground" Value="{ThemeResource PrimaryTextColor}" />

View file

@ -27,6 +27,7 @@
ItemsSource="{Binding Results.Results, Mode=OneWay}"
SelectionMode="Single"
SelectedIndex="{Binding Results.SelectedIndex, Mode=TwoWay}"
Style="{StaticResource ListViewNoAnimations}"
>
<ListView.ItemTemplate>
<DataTemplate >