How to create ControlTemplate from code behind in Windows Store App?
问题 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" /> <