0

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?

skolima
  • 31,963
  • 27
  • 115
  • 151
Neville
  • 1,080
  • 1
  • 12
  • 28

1 Answers1

0

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.

erradi mourad
  • 259
  • 4
  • 7
  • Thanks Erradi. This did the trick. I had to make one small change to let a space display before and after the word in bold. Did this by using the syntax instead. – Neville Nov 01 '12 at 13:47