Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1490
CategoryXAxis Label Template in code behind
posted

Hi, I want to achieve one requirement just like  this example: http://es.infragistics.com/products/silverlight/sample/data-chart/#/axis-label-templates

In this example, the Label of CategoryXAxis has an angle, and the Label Template is defined in Resource.  But in my application, the xamDataChart is dynamic created in code behind including the CategoryXAxis

Below is  my xamdatachart code in xaml:

<UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="CH.Web.Chart.WEB.XytUcMapMD03Tilt"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignWidth="1000" d:DesignHeight="640"
xmlns:ig="http://schemas.infragistics.com/xaml">


<Grid x:Name="LayoutRoot">

<ig:XamDataChart x:Name="DataChart1"  >

</ig:XamDataChart>

</Grid>
</UserControl>


I don't know how to achieve this in code behind(C#).    Thanks in advance~~