Checkboxes not displayed on some items

3 posts, 1 answers
  1. Florent
    Florent avatar
    9 posts
    Member since:
    May 2013

    Posted 24 Jul 2013 Link to this post


    I am currently writing a multiple image photo picker in a similar way as the one provided in the Photos app and mail attachments of Windows Phone 8.

    An album can both contains sub albums and pictures so I would like only my pictures items to be checkable. I managed to do it by code but I would like too to avoid displaying checkboxes on the albums. Is it possible to do it withDataBoundListBox ?

    Thanks for your answers.
  2. Answer
    Todor avatar
    772 posts

    Posted 29 Jul 2013 Link to this post

    Hello Florent,

    Thank you for writing.

    With the current implementation, RadJumpList displays checkboxes next to all of the items. However, there is a way to workaround this, if you need to.

    1) First, extract the default control template of Checkbox by using Blend of VisualStudio's designer.
    2) Then use a converter to determine whether the Checkbox should be visible or not, depending on whether the current item is album or picture:
    <Grid Visibility="{Binding Converter={StaticResource AlbumToVisibilityConverter}}" Margin="{StaticResource PhoneTouchTargetLargeOverhang}">
    This way you can add a converter which should return Visibility.Collapsed if the current item is Album, or Visibility.Visible otherwise.
    3) Finally, use the extracted style with the applied modifications and apply it to RadJumpList through the CheckBoxStyle property.

    I hope this information helps.

    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Florent
    Florent avatar
    9 posts
    Member since:
    May 2013

    Posted 07 Aug 2013 Link to this post

    It works great ! Thanks
Back to Top