Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 151749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:30:02+00:00 2026-05-11T09:30:02+00:00

In my project I have a WPF Listbox bound to an ObservableCollection. Every time

  • 0

In my project I have a WPF Listbox bound to an ObservableCollection. Every time I add a new item to the Collection the same item is added to the Listbox automaticly. To display the items in the Listbox I use a XAML Datatemplate.

What I want to do is animate an item once when it is added to the Collection/Listbox. Can this be done? As animation in the datatemplate maybe? I guess I need a trigger somehow to start this animate but what trigger is fired when a new item/datatemplate is added?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:30:02+00:00Added an answer on May 11, 2026 at 9:30 am

    I think an event trigger for the FrameworkElement.Loaded routed event could work. For example:

    <DataTemplate DataType='{x:Type l:Foo}'>     <Button x:Name='Button' Content='{Binding Path=Bar}'>         <Button.Background>             <SolidColorBrush x:Name='ButtonBrush' Color='Tan' />         </Button.Background>     </Button>     <DataTemplate.Triggers>         <EventTrigger RoutedEvent='FrameworkElement.Loaded' SourceName='Button'>             <BeginStoryboard>                 <Storyboard>                     <ColorAnimation Storyboard.TargetName='ButtonBrush' Storyboard.TargetProperty='Color' To='Red' />                 </Storyboard>             </BeginStoryboard>         </EventTrigger>     </DataTemplate.Triggers> </DataTemplate> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have image in project added as resource, if I try to add it
I have a WPF project and I'm trying to setup a NAnt build script
In my Silverlight project I have a thread that fires every x milliseconds. In
I have a solution where i have 3 WPF projects under it (Project UI-A,
I have WPF assembly with a bunch of other dlls in my project I
I have a wpf project which uses transparent windows and I share this transparent
I have an image control on a Window in my WPF project XAML: <Image
I have a project in WPF 4 and VB.net. I need to change the
I have a project with WPF 4/VB.net 2010. How do I begin a WPF
In a project have been involved in I needed to render tables with columns

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.