styling the popup window of pickerbox

4 posts, 0 answers
  1. Nilangini
    Nilangini avatar
    6 posts
    Member since:
    Feb 2012

    Posted 11 Apr 2012 Link to this post

    I am not able to find out about how to format the content of the popup window.
    I want to change the fonts of the items and also display an image along with each item text.

    Can you please give some pointer to a sample code?

    Thanks and Regards,
    Nilangini
  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 12 Apr 2012 Link to this post

    Hello Nilangini,

    Thanks for writing and for your question.

    Since you are the one that defines the contents of the window, you can adjust the appearance by setting the corresponding properties in XAML:

    <telerikPrimitives:RadPickerBox IsFullScreen="True"
                                          x:Name="formatPicker" >
              <telerikPrimitives:RadPickerBox.PopupContent>
                  <Grid Background="{StaticResource PhoneChromeBrush}" FontSize="30" Foreground="Pink">
                     
                  </Grid>
              </telerikPrimitives:RadPickerBox.PopupContent>
          </telerikPrimitives:RadPickerBox>
    Here, for instance, I put a Grid element in my Window and adjust its Background, FontSize and Foreground properties.

    I hope this helps.

    Kind regards,
    Deyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Nilangini
    Nilangini avatar
    6 posts
    Member since:
    Feb 2012

    Posted 13 Apr 2012 Link to this post

    Thank you.
    can you also help me setting the forground color of the pickerbox through code as well as XAML?
    It must be somethng quite simple, but I am not able to get it work.
    Regards,
    Nilangini
  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 17 Apr 2012 Link to this post

    Hello Nilangini,

    You can again use the PickerButtonStyle property to define the visual appearance of the inline portion of RadPickerBox.

    I hope this helps.

    Regards,
    Deyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top