<ControlTemplate TargetType="{x:Type charts:LinearAxis}" x:Key="LinearAxisTemplate">
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
<Grid x:Name="LayoutRoot" Background="{TemplateBinding Background}">
<Grid x:Name="LabelsContainer"/>
<Canvas x:Name="BehaviourCanvas"/>
<Viewbox Stretch="Uniform" StretchDirection="DownOnly"
Grid.Row="{Binding (Grid.Row), ElementName=AxisLabelContainer}"
Grid.Column="{Binding (Grid.Column), ElementName=AxisLabelContainer}">
<Visiblox_Charts_Primitives:TransposePanel x:Name="AxisLabelContainer">
<TextBlock x:Name="AxisLabel" Style="{TemplateBinding TitleStyle}" Text="{TemplateBinding Title}" />
</Visiblox_Charts_Primitives:TransposePanel>
</Viewbox>
<Line x:Name="AxisLine" Style="{TemplateBinding AxisLineStyle}" Stretch="Fill"/>
</Grid>
</Border>
</ControlTemplate>
은 그냥 차트의 임의의 LinearAxis이 템플릿을 적용하고, 타이틀에 맞게 축소됩니다. 모든 유형의 축에 대해이를 쉽게 적용 할 수 있습니다.
(XAxis as LinearAxis).Template = MyChart.FindResource("LinearAxisTemplate") as System.Windows.Controls.ControlTemplate;