RadTileView and RadBook item dragging error

5 posts, 1 answers
  1. Adam
    Adam avatar
    6 posts
    Member since:
    Sep 2015

    Posted 30 Dec 2015 Link to this post

    Hi, I am having an issue where if I add a RadBook as a Content template to a RadTileView, it throws an exception:

    An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in PresentationCore.dll

    Additional information: The parameter value must be greater than zero.

     This doesn't always happen but will if you move enough of them around.  If I take out the book control it works fine. Any Ideas?

     

    -adam


     
  2. Dinko
    Admin
    Dinko avatar
    206 posts

    Posted 04 Jan Link to this post

    Hi Adam,

    Thank you for the provided information which help us to reproduce the issue. We have logged that issue in our system and you can track its progress in our feedback portal. As a workaround, you can set the Width  property of the RadBook control.
    <telerik:RadBook Width="200" />

    Regards,
    Dinko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Adam
    Adam avatar
    6 posts
    Member since:
    Sep 2015

    Posted 05 Jan Link to this post

    This did not solve the issue. Any other ideas?
  5. Answer
    Dinko
    Admin
    Dinko avatar
    206 posts

    Posted 08 Jan Link to this post

    Hi Adam,

    After further testing, our team found a possible approach that could be a solution for your case. Basically, you can bind the Width of the RadBook to the ActualWidth of the RadTileViewItem which wraps the book. 
    Check the code snippet below:
    <telerik:RadTileViewItem Header="Parent TileViewItem">    
         <telerik:RadBook Padding="0 0 20 0"
                          Width="{Binding ActualWidth,RelativeSource={RelativeSource AncestorType=telerik:RadTileViewItem}}">                                         

    In addition, you can use Padding property so you can arrange the RadBook in the RadTileViewItems content.

    Please, give this approach a try and let me know if this works for you.

    Regards,
    Dinko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Adam
    Adam avatar
    6 posts
    Member since:
    Sep 2015

    Posted 11 Jan in reply to Dinko Link to this post

    Awesome job Dinko! I had to use some converters to make sure it would fit inside the tile as there are other controls in there but after that it worked perfectly.

     

    -Adam

Back to Top
UI for WPF is Visual Studio 2017 Ready