Solved

fade effects to ListBox.ItemTemplate

Posted on 2009-05-11
2
953 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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 PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

786 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