Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / Axis Class / TickLabelTemplate Property
Example


In This Topic
    TickLabelTemplate Property
    In This Topic
    Gets or sets the DataTemplate that will be used when displaying the tick labels.
    Syntax
    'Declaration
     
    
    Public Property TickLabelTemplate As DataTemplate
    'Usage
     
    
    Dim instance As Axis
    Dim value As DataTemplate
     
    instance.TickLabelTemplate = value
     
    value = instance.TickLabelTemplate
    public DataTemplate TickLabelTemplate {get; set;}
    Example
    <xctk:Chart.HorizontalAxis>
      <xctk:Axis>
        <xctk:Axis.TickLabelTemplate>
          <DataTemplate>
            <xctk:Border Margin="5"
                         BorderThickness="1"
                         BorderBrush="Blue"
                         HorizontalOptions="Center"
                         VerticalOptions="Center">
              <Label FontAttributes="Italic"
                     FontSize="12"
                     Text="{Binding Text}"
                     TextColor="Blue"/>
            </xctk:Border>
          </DataTemplate>
        </xctk:Axis.TickLabelTemplate>
      </xctk:Axis>
    </xctk:Chart.HorizontalAxis>
    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