Conditional Formating

3 posts, 1 answers
  1. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 16 Dec 2008 Link to this post

    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. Answer
    Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 18 Dec 2008 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 18 Dec 2008 Link to this post

    Thanks!!   Big Help
Back to Top