Xceed Toolkit for Maui v2.0 Documentation
DataPointLabelTemplate Property
Example 


Xceed.Maui.Toolkit Assembly > Xceed.Maui.Toolkit Namespace > Series Class : DataPointLabelTemplate Property
Gets or sets the DataTemplate that will be used for the labels associated with the DataPoints.
Syntax
'Declaration
 
Public Property DataPointLabelTemplate As DataTemplate
'Usage
 
Dim instance As Series
Dim value As DataTemplate
 
instance.DataPointLabelTemplate = value
 
value = instance.DataPointLabelTemplate
public DataTemplate DataPointLabelTemplate {get; set;}
Remarks
Note that the ShowDataPointLabels property must be set to true in order to make said labels visible.
Example
<xctk:Series.DataPointLabelTemplate>
  <DataTemplate>
    <xctk:Border Background="LightGray"
                 BorderThickness="1"
                 BorderBrush="Orange"
                 CornerRadius="5"
                 HorizontalOptions="Center"
                 VerticalOptions="Center"
      <Label FontAttributes="Italic"
             FontSize="12"
             Text="{Binding DataPoint.Y}"
             TextColor="Orange"/>
    </xctk:Border>
  </DataTemplate>
</xctk:Series.DataPointLabelTemplate>
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

Series Class
Series Members