Skip to main content

Microsoft Silverlight

Item Container Style question regarding to changes in ContentPresenterRSS Feed

(0)

sinosoidal
sinosoidal

Member

Member

664 points

373 Posts

Item Container Style question regarding to changes in ContentPresenter

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

--

Imagining (and touching) the future
http://www.nunosantos.net/
http://www.myspace.com/sinosoidal

amyo
amyo

Contributor

Contributor

3630 points

495 Posts

Re: Item Container Style question regarding to changes in ContentPresenter

Check this post: http://silverlight.net/blogs/jesseliberty/archive/2008/09/28/rc0-amp-contentpresenter.aspx

 

 

 

Amyo Kabir
Solution Architect & Sr. Developer
Blog

sinosoidal
sinosoidal

Member

Member

664 points

373 Posts

Re: Re: Item Container Style question regarding to changes in ContentPresenter

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?

Thanks,

With my best regards,

Nuno

--

Imagining (and touching) the future
http://www.nunosantos.net/
http://www.myspace.com/sinosoidal
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities