18 Answers, 1 is accepted
There is no property that disables the mouse wheel in RadCoverFlow, but you could inherit the control and override the OnMouseWheel method, without calling base. This should do the trick.
Greetings,
Valeri Hristov
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
Cheers
All the best,
Valeri Hristov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
What I can suggest you in order to achieve the desired behavior would to be place the CoverFlow inside of ScrollViewer as shown below:
<
ScrollViewer
HorizontalScrollBarVisibility
=
"Auto"
>
<
local:CoverFlow
>
<
Rectangle
Fill
=
"Red"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Green"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Blue"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Magenta"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Red"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Green"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Blue"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Magenta"
Width
=
"200"
Height
=
"200"
/>
</
local:CoverFlow
>
</
ScrollViewer
>
This way when you click on an item it will get selected but won't move in the center. However please note this approach will only work with latest version of the controls.
Hope this helps.
Regards,
Kalin
Telerik
Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).
By design the selected item has been rotated in order to be distinguished from the others. If you also need to disable that rotation and the scale of the items so they all look the same - you could try the following code snippet:
<
ScrollViewer
HorizontalScrollBarVisibility
=
"Auto"
>
<
telerik:RadCoverFlow
DistanceBetweenItems
=
"210"
ItemScale
=
"1"
RotationY
=
"0"
DistanceFromSelectedItem
=
"10"
IsReflectionEnabled
=
"False"
>
<
Rectangle
Fill
=
"Red"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Green"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Blue"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Magenta"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Red"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Green"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Blue"
Width
=
"200"
Height
=
"200"
/>
<
Rectangle
Fill
=
"Magenta"
Width
=
"200"
Height
=
"200"
/>
</
telerik:RadCoverFlow
>
</
ScrollViewer
>
You can also check the Configurator example from our online demos where you can further experiment with provided properties of the CoverFlow. However if this solution doesn't achieve the desired scenario, I'll ask you to open new support ticket where you can attach a sample project and share some more details on the exact requirements and issues you are facing.
Hope this will work for you.
Regards,
Kalin
Telerik
My first suggestion actually was achieving the desired scenario. Please check the attached video which demonstrates it. When you click on an item it gets selected and it doesn't move to the center. However if this is still not helping I'll ask to open new support thread for your exact case and share more details there as well as a sample project.
Hope this will work for you.
Regards,
Kalin
Telerik
Thanks,..
You can check the attached project which demonstrates the exact approach. Please note that this works only with the latest release version of the controls.
Hope this helps.
Regards,
Kalin
Telerik
thanks,
HH
Hi Kalin: That worked great until you added itemScale to the RadCoverFlow and then the last block gets cut in half.
<
ScrollViewer
x:Name
=
"myScroll"
HorizontalScrollBarVisibility
=
"Auto"
Margin
=
"158,125,175,156"
>
<
telerik:RadCoverFlow
x:Name
=
"myFlow"
SelectionChanged
=
"RadCoverFlow_SelectionChanged"
RotationY
=
"0"
DistanceFromSelectedItem
=
"5"
DistanceBetweenItems
=
"205"
ItemScale
=
"0.8"
IsReflectionEnabled
=
"False"
>
<
Rectangle
Fill
=
"Red"
Width
=
"200"
Height
=
"200"
Tag
=
"0"
/>
<
Rectangle
Fill
=
"Green"
Width
=
"200"
Height
=
"200"
Tag
=
"1"
/>
<
Rectangle
Fill
=
"Blue"
Width
=
"200"
Height
=
"200"
Tag
=
"2"
/>
<
Rectangle
Fill
=
"Magenta"
Width
=
"200"
Height
=
"200"
Tag
=
"3"
/>
<
Rectangle
Fill
=
"Red"
Width
=
"200"
Height
=
"200"
Tag
=
"4"
/>
<
Rectangle
Fill
=
"Green"
Width
=
"200"
Height
=
"200"
Tag
=
"5"
/>
<
Rectangle
Fill
=
"Blue"
Width
=
"200"
Height
=
"200"
Tag
=
"6"
/>
<
Rectangle
Fill
=
"Magenta"
Width
=
"200"
Height
=
"200"
Tag
=
"7"
/>
<
Rectangle
Fill
=
"Red"
Width
=
"200"
Height
=
"200"
Tag
=
"8"
/>
<
Rectangle
Fill
=
"Green"
Width
=
"200"
Height
=
"200"
Tag
=
"9"
/>
<
Rectangle
Fill
=
"Blue"
Width
=
"200"
Height
=
"200"
Tag
=
"10"
/>
<
Rectangle
Fill
=
"Magenta"
Width
=
"200"
Height
=
"200"
Tag
=
"11"
/>
<
Rectangle
Fill
=
"Red"
Width
=
"200"
Height
=
"200"
Tag
=
"12"
/>
<
Rectangle
Fill
=
"Green"
Width
=
"200"
Height
=
"200"
Tag
=
"13"
/>
<
Rectangle
Fill
=
"Blue"
Width
=
"200"
Height
=
"200"
Tag
=
"14"
/>
<
Rectangle
Fill
=
"Magenta"
Width
=
"200"
Height
=
"200"
Tag
=
"15"
/>
<
Rectangle
Fill
=
"Red"
Width
=
"200"
Height
=
"200"
Tag
=
"16"
/>
<
Rectangle
Fill
=
"Green"
Width
=
"200"
Height
=
"200"
Tag
=
"17"
/>
<
Rectangle
Fill
=
"Blue"
Width
=
"200"
Height
=
"200"
Tag
=
"18"
/>
<
Rectangle
Fill
=
"Magenta"
Width
=
"200"
Height
=
"200"
Tag
=
"19"
/>
<
Rectangle
Fill
=
"Red"
Width
=
"200"
Height
=
"200"
Tag
=
"20"
/>
<
Rectangle
Fill
=
"Green"
Width
=
"200"
Height
=
"200"
Tag
=
"21"
/>
<
Rectangle
Fill
=
"Blue"
Width
=
"200"
Height
=
"200"
Tag
=
"22"
/>
<
Rectangle
Fill
=
"Magenta"
Width
=
"200"
Height
=
"200"
Tag
=
"23"
/>
</
telerik:RadCoverFlow
>
</
ScrollViewer
>
The approach I suggested you - to place the CoverFlow inside of the ScrollViewer was just workaround to achieve the desired, however it appears there is issue caused by the ScrollViewer when the ItemScale is different than one. However what I can suggest you now is to either set the ItemScale to 1 or add an additional transparent Rectangle at the end:
<
Rectangle
Fill
=
"Transparent"
Width
=
"200"
Height
=
"200"
/>
This way that last item won't be cropped, but there will be some white space at the end.
Hope this helps.
Regards,
Kalin
Telerik
DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!
That will probably work -- plus, since I know how many items I have in my flow, I will just ignore the SELECT command if the item selected is equal to ITEMS.COUNT (IE: the last transparent item).
Thanks,