Animate selected item of wpf listbox?

Create ItemContainerStyle for the ListBox and and Add Trigger for ListBoxItem. IsSelected == True.

– Veer Feb 13 '10 at 21:34 1 Instead of setting the Template property, set the ItemContainerStyle property. Create a style in there with the trigger Jobi said, and then apply your animation when the trigger is activated. – Benny Jobigan Feb 15 '10 at 13:50 Thanks i'll try that today and let you know :) – Veer Feb 16 '10 at 9:58 That really works.

But what happens is, the Blueghlight for the selected item still exists and it hides the background color animation. Any solution for this? – Veer Feb 18 '10 at 5:06 There will be a Trigger which sets the blue color so you have to remove it.

Paste your current working XAML here. – Jobi Joy Feb 18 '10 at 6:13.

I'm trying to set a global style for all the listboxes in my application. Below is the xaml code that i've used. Here i've tried to trigger out an animation but it doesn't work.

I just want an animation on the selected item.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions