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
0
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.
Regards,
Dinko
Telerik
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
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:
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
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