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

Conditional Formating

2 Answers 39 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 16 Dec 2008, 03:08 PM
Hi..
How can I add conditional formatting to the stackpanel in the Carousel Panel?

For Example if the Person's Lastname starts with 'A'  - I'd like to show an a graphic.... 'A.jpg'
If Lastname starts with 'B" - 'B.jpg'... thanks in advance


 

 

<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" >

 

 

 

<Label Content="{Binding Path=Data.FirstName}" Foreground="#ff8FB3FF" FontSize="12" />

 

 

 

<Label Content="{Binding Path=Data.LastName}" Foreground="#ff8FB3FF" FontSize="12" />

 

 

 

</StackPanel>

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Rosi
Telerik team
answered on 18 Dec 2008, 08:44 AM
Hi Jon,

Thanks for your interest in RadCarousel.

I suggest you use the ValueConverter class to achieve the desired behavior. Please find the attached sample project illustrating the approach.

If you have any other problems or questions related to our controls do not hesitate to contact us.

Regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jon
Top achievements
Rank 1
answered on 18 Dec 2008, 04:20 PM
Thanks!!   Big Help
Tags
Carousel
Asked by
Jon
Top achievements
Rank 1
Answers by
Rosi
Telerik team
Jon
Top achievements
Rank 1
Share this question
or