I would like to assign an animation to the newly created ListViewItem. Like FadeIn or FadeOut. I have this XAML code:
<ListView Height="320" HorizontalAlignment="Left" Margin="630,0,0,0" Name="listView1" VerticalAlignment="Top" Width="222" ItemsSource="{Binding}"> <ListView.ItemTemplate> <DataTemplate> <Grid Name="mainGrid"> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> <ColumnDefinition Width="150"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.Resources> </Grid.Resources> <Image Name="img" Source="{Binding AvatarSource}" Width="32" Margin="8"></Image> <Image Source="{Binding IconSource}" Width="16" Margin="0,-28,32,0"></Image> <TextBlock Grid.Column="1" Margin="0,8,0,0" TextWrapping="Wrap"> <Run Text="{Binding Name}" FontWeight="Bold"></Run> <LineBreak/> <Run Text="{Binding StatusText}"></Run> </TextBlock> </Grid> </DataTemplate> </ListView.ItemTemplate> </ListView>
Is there a way to access any method, for example in jQuery: $ ('# listViewItemId'). fadeIn ();
Is it possible to link backViewView1.ItemsSource with any accessible form in which I will see all the controls inside? And how to manipulate them?
I would also like this to not be done manually in C #, but if this cannot be done using the ItemTemplate, I will do it anyway.
I am new to XAML and I have not been able to find a good source for learning XAML with C # properly.
c # wpf xaml
Daniel G
source share