I just upgraded to the latest version 608.40 and there seems to be a change in the animatedpropertysettings. What changes do I have to make adapt?
Thanks, Karl
Thanks, Karl
private
void
ZoomItem(RadButtonElement button)
{
shouldZoomSelectedItem =
false
;
Size size =
this
.radCarousel1.CarouselElement.ItemsContainer.Size;
CarouselContentItem contentItem = (CarouselContentItem)button.Parent;
zoomedItem = contentItem;
button.ButtonFillElement.Visibility = ElementVisibility.Collapsed;
currScaleFactor = Math.Min(
((
float
)size.Width) / button.Size.Width / 2f,
((
float
)size.Height) / button.Size.Height / 2f);
AnimatedPropertySetting scaleChange =
new
AnimatedPropertySetting(
RadElement.ScaleTransformProperty,
new
SizeF(currScaleFactor, currScaleFactor),
5,
20
);
scaleChange.AnimationFinished +=
new
AnimationFinishedEventHandler(scaleChange_AnimationFinished);
SizeF offset =
new
SizeF(
(size.Width - contentItem.Size.Width * currScaleFactor) / 2f - contentItem.Location.X,
(size.Height - contentItem.Size.Height * 0.50f * currScaleFactor) / 2f - contentItem.Location.Y);
AnimatedPropertySetting positionChange =
new
AnimatedPropertySetting(
RadElement.PositionOffsetProperty,
offset,
5,
20
);
scaleChange.ApplyValue(contentItem);
positionChange.ApplyValue(contentItem);
}