Hi,
I'm trying to use a XamCarouselPanel in a windows form. I want to change it from using the default eliptical path to a horizontal line.
I've tried doing something like this, but it still uses the eliptical path -
XamCarouselPanel carouselPanel = new XamCarouselPanel();
carouselPanel.Name =
"XamCarouselPanel";
carouselPanel.ViewSettings.ItemSize = new System.Windows.Size(bPanel1.Width, bPanel1.Height);
System.Windows.Shapes.
Line path = new System.Windows.Shapes.Line();
path.Stroke = System.Windows.Media.
Brushes.Gray;
path.X1 = 1;
path.X2 = 862;
path.Y1 = 169;
path.Y2 = 169;
path.HorizontalAlignment = System.Windows.
HorizontalAlignment.Center;
path.VerticalAlignment = System.Windows.
VerticalAlignment.Center;
We look at the code samples provided by Infragistics in your Mydocs and Settings->All Users->Shareddocs->Infragistics directory and pull open the XAMFeatureBrowser. We look at the carousel's paths(the ones that you can select on the fly) and when we find one, you take the name of that one and go to the xaml code....copy->paste it in the xaml code and then you have your path.
You can either set the path in the xaml or you can set it during runtime in the C# code with the Carouse.viewsettings.itempath = nameOfYourPathHere code