Description This article shows how to display the zooming scrollbar initially in Angular Charts. Solution The zooming scrollbar allows you to zoom in and zoom out of the chart. This scrollbar is displayed only when the zooming operation is made in the chart. You can display the zooming scrollbar on the first render of the chart by setting the zoomFactor property to 0.3 in the primaryXAxis, set the enableScrollbar property to true in the zoomSettings property, and enable the isZoomed property in the load event of the chart. Code Snippet The following code shows how to display the zooming scrollbar on the first load. zoomSettings = { enableSelectionZooming: true, mode: "X", enableScrollbar: true }; primaryXAxis = { zoomFactor: 0.3 }; public load(args: ILoadedEventArgs): void { args.chart.zoomModule.isZoomed = true; }; The following image illustrates the output of the above code. View Sample in Stackblitz Conslusion I hope you enjoyed learning how to display the zooming scrollbar initially in Angular Charts. You can refer to our Angular Charts feature tour page to learn about its other features and documentation, and how to quickly get started for configuration specifications. You can also explore our Angular Charts example to understand how to create and visualize data. For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comment section below. You can also contact us through our support forums, support portal, or feedback portal. We are always happy to assist you!
User can add the ScrollBar to the Carousel Items. It can be achieved by adding the ScrollViewer control inside the ItemTemplate of Carousel control. The following code demonstrates the same. XAML <Window.DataContext> <local:ViewModel/> </Window.DataContext> <!-- Carousel control --> <syncfusion:Carousel Height="300" x:Name="carousel" ItemsSource="{Binding Collection}"> <!-- Set Height For Carousel Items --> <syncfusion:Carousel.ItemContainerStyle> <Style TargetType="syncfusion:CarouselItem"> <Setter Property="Height" Value="140" /> </Style> </syncfusion:Carousel.ItemContainerStyle> <!-- For Adding ScrollBar to Carousel Items --> <syncfusion:Carousel.ItemTemplate> <DataTemplate> <Grid > <!-- Add ScrollBar --> <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" > <Border x:Name="border" > <Grid Width="150" Height="300"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <TextBox TextWrapping="Wrap" Grid.Row="0" Background="Green" Foreground="White" Text="The Carousel is a circular conveyor used on which objects are displayed and rotated. The Carousel control provides a 3D interface for displaying objects with interactive navigation, Data Binding Path, Items Per Page, Scaling and Skewing."/> <Image Source="/Images1/dodsworth.png" Grid.Row="1" /> </Grid> </Border> </ScrollViewer> </Grid> </DataTemplate> </syncfusion:Carousel.ItemTemplate> C# public class Model { } public ObservableCollection<Model> Collection { get; set; } public ViewModel() { Collection = new ObservableCollection<Model>(); Collection.Add(new Model() ); Collection.Add(new Model() ); Collection.Add(new Model() ); Collection.Add(new Model() ); Collection.Add(new Model() ); } Screenshot Sample: CarouselSample
Adding scrollbars in MetroForm By default, WinForms MetroForm don’t have any scroll bar. But we can add scroll bar in MetroForm by the help of Panel. Here we have used the ScrollersFrame in Panel to show the scroll bar and apply the metro style. The following code demonstrates the same. C# //Initialize ScrollersFrame ScrollersFrame frame = new ScrollersFrame(); //Enable ScrollBar to the container frame.AttachedTo = this.panel1; //Set ScrollersFrame Visual Style frame.VisualStyle = ScrollBarCustomDrawStyles.Metro; //Enable AutoScroll property this.panel1.AutoScroll = true; VB 'Initialize ScrollersFrame Dim frame As New ScrollersFrame() 'Enable ScrollBar to the container frame.AttachedTo = Me.panel1 'Set ScrollersFrame Visual Style frame.VisualStyle = ScrollBarCustomDrawStyles.Metro 'Enable AutoScroll property Me.panel1.AutoScroll = True Screenshot Samples: C#: MetroForm_AutoScroll VB: MetroForm_AutoScroll Conclusion I hope you enjoyed learning how to to add scrollbars in WinForms MetroForm. Refer to our WinForms MetroForm’s feature tour page for its other groundbreaking feature representations. You can also explore our WinForms MetroForm documentation to understand how to present and manipulate data. For current customers, check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, try our 30-day free trial to check out our WinForms MetroForm and other WinForms components. Please let us know in the following comment section if you have any queries or require clarifications. Contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!