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

Add panel in Carousel

1 Answer 34 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
meraj
Top achievements
Rank 1
meraj asked on 29 Mar 2011, 12:32 PM
Hi
i want to add a panel with some label and button in Carousel is it possible.
Please help.

1 Answer, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 31 Mar 2011, 09:03 AM
Hello Meraj,

Just create a custom control, let's say UserControl1 and add everything you need to that custom control.
VERY IMPORTANT: please set a minimum size to your control.
After this just to the following:
var control = new UserControl1();
// make changes to your control here as needed
var element = new RadHostItem(control);
element.MinSize = control.MinimumSize;
radCarousel1.Items.Add(element);

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
Tags
Carousel
Asked by
meraj
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Share this question
or