Use text of label in Rotator

Hello,

Is it possible to use the text of labels in a Rotator and not image's ?


I want to loop the text of 5 labels or do i need to look for something else .

3 Replies

AS Anandraj Selvam Syncfusion Team February 17, 2020 12:24 PM UTC

Hi Boris Oprit,  
  
We have validated your query and achieved your requirement by using the Item Template in SfRotator as in below. 
  
Code Snippet: 
<syncfusion:SfRotator x:Name="rotator ItemsSource="{Binding LabelCollection}"> 
            <syncfusion:SfRotator.ItemTemplate> 
                <DataTemplate> 
                    <Label Text="{Binding Name}" HorizontalTextAlignment="Center" VerticalTextAlignment="Center"/> 
                </DataTemplate> 
            </syncfusion:SfRotator.ItemTemplate> 
        </syncfusion:SfRotator> 
  
  
Please revert us for further investigation.  
  
Regards,  
Anand Raj S. 



BO Boris Oprit February 18, 2020 07:39 PM UTC

Thanks for the sulution,

I take a look at it , but i mean to use the text of exsiting labels in the mainpage .




AS Anandraj Selvam Syncfusion Team February 19, 2020 02:43 PM UTC

Hi Boris Oprit, 
  
Thanks for the update, 
  
We would like to let you know that we have checked the reported issue and we have achieved your requirement. Please find the testbed sample below: 
   
 
 
Please revert us if you have any other concerns. 
  
Regards, 
Anand Raj S. 


Loader.
Up arrow icon