This is a migrated thread and some comments may be shown as answers.

Watermark as label

1 Answer 49 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Edward
Top achievements
Rank 2
Edward asked on 11 Dec 2012, 04:27 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan Ivanov
Telerik team
answered on 14 Dec 2012, 04:59 PM
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.

Tags
DataForm
Asked by
Edward
Top achievements
Rank 2
Answers by
Ivan Ivanov
Telerik team
Share this question
or