Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Item Container Style question regarding to changes in ContentPresenter
2 replies. Latest Post by sinosoidal on November 16, 2008.
(0)
sinosoidal
Member
664 points
373 Posts
11-16-2008 6:16 AM |
Hi,
Before the launch of SL 2 final, I was using listboxes where the item container style was the most simple thing and the item template was just text. The idea was to have a simple text button which becomes blue when mouse is over and gray when its not. The blue stayed permanetly there when selected.
This was possible because the content presentar had such properties as background, foreground, etc.
The thing is that now, that doesnt existe and i'm not able anymore to change the color of text. I can only make things appear under and beneath the content presenter but I really would like to keep this schema. Is there any other way to accomplish this?
Thanks,
Nuno
amyo
Contributor
3630 points
495 Posts
11-16-2008 8:28 AM |
Check this post: http://silverlight.net/blogs/jesseliberty/archive/2008/09/28/rc0-amp-contentpresenter.aspx
11-16-2008 11:58 AM |
Thank you for the link. I have readed however it didn't provided me a solution for the problem.
In my particular case the problem is a little bit different. I have a section list that I bind in a ListBox.In my state manager I defined in each state the foreground for each one of them, and that was propagated to the data template, in this case, the text gets the determined color for each state.
Now that is not possible. Is there any way to have the foreground color (or any other property) binded in somehow in the data template?
With my best regards,