Solved

fade effects to ListBox.ItemTemplate

Posted on 2009-05-11
2
952 Views
Last Modified: 2013-11-12
i have a listbox control in silverlight and i am binding the source of ListBox.ItemTemplate dynamically. How can i give fade effects to each item?
<Grid x:Name="LayoutRoot" Background="Beige" HorizontalAlignment="Center" Width="Auto">

            <Grid.ColumnDefinitions>

                <ColumnDefinition Width="1300" />

                <ColumnDefinition />

            </Grid.ColumnDefinitions>

            <Grid.RowDefinitions>

                <RowDefinition Height="Auto" />

                <RowDefinition />

            </Grid.RowDefinitions>

            <ContentControl Content="Select a Template" Grid.Row="0" Grid.Column="0" Margin="4" />

            <ListBox Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" 

                  x:Name="thumbs"

                  Style="{StaticResource WrapListBox}"                  

                  Margin="0" >

                <ListBox.ItemTemplate>

                    <!-- DataTemplate for Photograph i  nstances -->

                    <DataTemplate x:Name="PhotographTemplate">

                        <Grid Margin="6">

                            <Grid.RowDefinitions>

                                <RowDefinition Height="Auto" />

                                <RowDefinition Height="Auto" />

                            </Grid.RowDefinitions>

                            <controls:Viewbox Height="100" Width="100" VerticalAlignment="Bottom">

                                <Border BorderBrush="#FF999999" BorderThickness="2" Padding="10">

                                    <Image x:Name="Thumbnail" Source="{Binding Thumbnail}"  >

                                    </Image>

                                </Border>

                            </controls:Viewbox>

                            <ContentControl Grid.Row="1" Content="{Binding Name}" HorizontalAlignment="Center" FontSize="10" />

                        </Grid>

                    </DataTemplate>

                </ListBox.ItemTemplate>

            </ListBox>

            <Image x:Name="Thumbnail1" Source="Template.jpg" Opacity="0"  >

            </Image>

        </Grid>

Open in new window

0
Comment
Question by:x1877
2 Comments
 
LVL 16

Accepted Solution

by:
CuteBug earned 500 total points
ID: 24362813
0
 

Author Comment

by:x1877
ID: 25019674
The first link is not working.
The second one is good
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
c# LinkButton OnClientClick 2 34
Error on link 14 37
VS2015 Redefinition errors 4 27
Exit the loop 4 34
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now