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

RadTileView and RadBook item dragging error

4 Answers 28 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 30 Dec 2015, 05:04 PM

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


 

4 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 04 Jan 2016, 02:54 PM
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
0
Adam
Top achievements
Rank 1
answered on 05 Jan 2016, 09:18 PM
This did not solve the issue. Any other ideas?
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 08 Jan 2016, 04:39 PM
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
0
Adam
Top achievements
Rank 1
answered on 11 Jan 2016, 05:41 PM

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

Tags
TileView
Asked by
Adam
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Adam
Top achievements
Rank 1
Share this question
or