Watermark as label

2 posts, 1 answers
  1. Edward
    Edward avatar
    45 posts
    Member since:
    Aug 2005

    Posted 11 Dec 2012 Link to this post

    Hi 

    I was wondering if it is possible to use watermarks in the fields instead of a label.   I bind against an annotated object. 

    Thanks!

    Edward
  2. Answer
    Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 14 Dec 2012 Link to this post

    Hello,

    You can put whatever you want in the label, by using a DataTemplate. Here is an example:

    <telerik:RadDataForm Grid.Row="0"                            
                                ItemsSource="{Binding Clubs}">
               <telerik:RadDataForm.DataFieldStyle>
                   <Style TargetType="telerik:DataFormDataField">
                       <Setter Property="LabelTemplate">
                           <Setter.Value>
                               <DataTemplate>
                                   . . .
                               </DataTemplate>
                           </Setter.Value>
                       </Setter>
                   </Style>
               </telerik:RadDataForm.DataFieldStyle>
           </telerik:RadDataForm>


    Regards,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top