Solved

fade effects to ListBox.ItemTemplate

Posted on 2009-05-11
2
959 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
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.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

738 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