UPDATE 1
If ControlTemplate has binding, will XamlReader.Load(...) work ?
<ControlTemplate TargetType="charting:LineDataPoint">
<Grid>
<ToolTipService.ToolTip>
<ContentControl Content="{Binding Value,Converter={StaticResource DateToString},ConverterParameter=TEST}"/>
</ToolTipService.ToolTip>
<Ellipse Fill="Lime" Stroke="Lime" StrokeThickness="3" />
</Grid>
</ControlTemplate>
I want to achieve this from code behind.
<ControlTemplate>
<Ellipse Fill="Green" Stroke="Red" StrokeThickness="3" />
</ControlTemplate>
I searched a lot all are showing FrameworkElementFactory & VisualTree property of ControlTemplate. These are not avaible in .NET for Windows Store Apps.
Anyone knows to create ControlTemplate from code behind ?