Underline the implicit Textblock created in Silverlight for a ContentPresenter when Content is a string?

You could subclass whatever actual ContentControl (i.e. Button ) you are using and override OnContentChanged in order to reset the Content property to an underlined TextBlock if the newContent is a string. In the case that the newContent is not a string it would perform in the usual way.

Try this example, using a DataTemplate to custom-render string content (I've just set the background to red).

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