Wednesday, October 31, 2012

Bold single word inside Silverlight DataField label

Bold single word inside Silverlight DataField label

Imagine I have a simple DataField in my Silverlight app. something like this:

<toolkit:DataField Label="This is my test label:">   <TextBox ... etc... /> </toolkit:DataField> 

Is it possible to style the label in above example so that only the word "test" is bold?

Answers & Comments...

Answer: 1

you can use Run tag inside a textblock tag like this :

<toolkit:DataField >      <toolkit:DataField.Label>          <TextBlock >This is my <Run FontWeight="Bold">test</Run>label</TextBlock>      </toolkit:DataField.Label>       <TextBox ... etc... /> </toolkit:DataField> 

i hope that it fixe your pb.

by : erradi mouradhttp://stackoverflow.com/users/1049530




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog