Xceed Toolkit for Maui v2.0 Documentation
SeriesItemTemplate Property
Example 


Xceed.Maui.Toolkit Assembly > Xceed.Maui.Toolkit Namespace > Legend Class : SeriesItemTemplate Property
Gets or sets the DataTemplate that will be used for each Series in the Legend.
Syntax
'Declaration
 
Public Property SeriesItemTemplate As DataTemplate
'Usage
 
Dim instance As Legend
Dim value As DataTemplate
 
instance.SeriesItemTemplate = value
 
value = instance.SeriesItemTemplate
public DataTemplate SeriesItemTemplate {get; set;}
Remarks
The LegendItem's BackgroundText properties will be used to respectively determine the color & text associated with each Series.
Example
<xctk:Chart.Legend>
  <xctk:Legend Title="My Legend">
    <xctk:Legend.SeriesItemTemplate>
      <DataTemplate>
        <ViewCell>
          <HorizontalStackLayout>
            <Ellipse Fill="{Binding Background}"
                     HeightRequest="16"
                     WidthRequest="16"/>
            <Label Margin="4"
                   FontAttributes="Italic"
                   FontSize="12"
                   Text="{Binding Text}"
                   TextColor="Blue"
                   VerticalOptions="Center"/>
          </HorizontalStackLayout>
        </ViewCell>
      </DataTemplate>
    </xctk:Legend.SeriesItemTemplate>
  </xctk:Legend>
</xctk:Chart.Legend>
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Legend Class
Legend Members