Description: This article describes about customizing the SfChart legend items and modify their default template. Solution: Scrollbar for the legends can be implemented by assigning the legend ItemsPresenter to the ScrollViewer of the legend ControlTemplate. The customized ControlTemplate for the legend is defined in the static resource and it is assigned to the Template property of the chart legend. XAML
C#
Screenshot: The following screenshot illustrates the legend items with a scrollbar. Figure 1: Pie Chart with legend scrollbar
|
This page will automatically be redirected to the sign-in page in 10 seconds.