Hello,
Neat control in the demos, but when I come to use it I have some problems. The carousel is inside a splitter panel that is 50% tall and 25% wide of the form.
1) I am loading images at runtime from the sample pictures folder (C:\Users\Public\Pictures\Sample Pictures), these are much larger than the control. I had expected there to be a means to say autosize the image but the autosize property on the carousel item does not appear to do anything.
2) The images are not centered (see attached) nor can I figure out where the borders are coming from.
3) I cannot move the navigation buttons, I want them as they are but half way up (I'm surprised this is not a provided setting).
4) The MSDN documentation is awful, look at the description of the easing types for example: ms-help://MS.VSCC.v90/MS.VSIPCC.v90/telerik.winforms.2010.2/telerik.winforms/Telerik.WinControls~Telerik.WinControls.RadEasingType.html
On re-sizing the splits it seems that image is probably the right size but the borders are messing things up.
All I am after is a slide show. maybe this is not the appropriate control?
Here is my code:
Regards,
Mark Leavesley
Neat control in the demos, but when I come to use it I have some problems. The carousel is inside a splitter panel that is 50% tall and 25% wide of the form.
1) I am loading images at runtime from the sample pictures folder (C:\Users\Public\Pictures\Sample Pictures), these are much larger than the control. I had expected there to be a means to say autosize the image but the autosize property on the carousel item does not appear to do anything.
2) The images are not centered (see attached) nor can I figure out where the borders are coming from.
3) I cannot move the navigation buttons, I want them as they are but half way up (I'm surprised this is not a provided setting).
4) The MSDN documentation is awful, look at the description of the easing types for example: ms-help://MS.VSCC.v90/MS.VSIPCC.v90/telerik.winforms.2010.2/telerik.winforms/Telerik.WinControls~Telerik.WinControls.RadEasingType.html
On re-sizing the splits it seems that image is probably the right size but the borders are messing things up.
All I am after is a slide show. maybe this is not the appropriate control?
Here is my code:
Dim objl_TELERIK_CAROUSEL As New Telerik.WinControls.UI.RadCarouselctll_PANEL_3.Controls.Add(objl_TELERIK_CAROUSEL)objl_TELERIK_CAROUSEL.Dock = DockStyle.Fillobjl_TELERIK_CAROUSEL.Name = ctll_PANEL_3.Name & "_TELERIK_CAROUSEL"objl_TELERIK_CAROUSEL.AnimationsToApply = Telerik.WinControls.UI.Animations.Noneobjl_TELERIK_CAROUSEL.AnimationDelay = 0'objl_TELERIK_CAROUSEL.AnimationFrames = 0objl_TELERIK_CAROUSEL.EasingType = Telerik.WinControls.RadEasingType.Defaultobjl_TELERIK_CAROUSEL.ItemReflectionPercentage = 0objl_TELERIK_CAROUSEL.AutoScroll = Falseobjl_TELERIK_CAROUSEL.ButtonNext.Location = New System.Drawing.Point(objl_TELERIK_CAROUSEL.ButtonNext.Bounds.X, CInt(objl_TELERIK_CAROUSEL.Height / 2))For Each strl_FILE As String In My.Computer.FileSystem.GetFiles("C:\Users\Public\Pictures\Sample Pictures") If strl_FILE.EndsWith(".jpg") Then Dim carouselItem As Telerik.WinControls.UI.RadButtonElement = New Telerik.WinControls.UI.RadButtonElement carouselItem.Image = New Bitmap(New Bitmap(strl_FILE), objl_TELERIK_CAROUSEL.Size.Width, objl_TELERIK_CAROUSEL.Size.Height) carouselItem.Alignment = ContentAlignment.TopLeft carouselItem.DisplayStyle = Telerik.WinControls.DisplayStyle.Image carouselItem.FitToSizeMode = Telerik.WinControls.RadFitToSizeMode.FitToParentBounds carouselItem.ImageAlignment = ContentAlignment.TopLeft carouselItem.AutoSize = True carouselItem.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.Auto objl_TELERIK_CAROUSEL.Items.Add(carouselItem) End IfNextRegards,
Mark Leavesley