Is it possible to change properties on a sub item in a DataTemplate using triggers from the containing control?

Yes, you should be able to do something like this.

Up vote 0 down vote favorite share g+ share fb share tw.

Wpf listview triggers datatemplate link|improve this question edited Aug 5 '11 at 22:37Dave Clemmer1,77331030 asked Jul 21 '09 at 14:23monkey_p1,0361512 83% accept rate.

Yes, you should be able to do something like this: XAML Tutorial - Changing the Text Color on Mouse Over ...but with a rectangle of course.

The problem is with the ListView and the DataTemplate. The trigger works, but it sets the background of the ListViewItem which wraps the Grid and Rectangle. I want to change the bacground of just the rectangle.

– monkey_p Jul 21 '09 at 14:40.

I got it working using a datatrigger in the template.

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