or
var chartViewModel = Grid.DataContext as ChartViewModel;var pointSeries = new PointSeries{ ItemsSource = chartViewModel.DataPoints, CategoryBinding = new PropertyNameDataPointBinding("DateTime"), ValueBinding = new PropertyNameDataPointBinding("Point"), PointSize = new Size(3, 3)};Chart.Series.Add(pointSeries);<telerik:RadCartesianChart x:Name="Chart"> <telerik:RadCartesianChart.VerticalAxis> <telerik:LinearAxis LineThickness="1" MajorTickLength="5" TickThickness="1"/> </telerik:RadCartesianChart.VerticalAxis> <telerik:RadCartesianChart.HorizontalAxis> <telerik:DateTimeCategoricalAxis DateTimeComponent="Minute" LabelFormat="M/d H:mm" LineThickness="1" MajorTickInterval="60" MajorTickLength="5" TickThickness="1"/> </telerik:RadCartesianChart.HorizontalAxis> <telerik:RadCartesianChart.Grid> <telerik:CartesianChartGrid MajorLinesVisibility="XY" /> </telerik:RadCartesianChart.Grid></telerik:RadCartesianChart>public class CustomRadDatePicker : RadDatePicker{ // no code yet}public class Node : ObservableObject{ protected int nodeType; public int NodeType { get { return nodeType; } set { nodeType= value; RaisePropertyChanged(() => NodeType ); } } }<DataTemplate x:Key="NodeTypeTemplate"> <telerikRad:RadComboBox ItemsSource="{BindingSource={x:Static helpers:ItemViewFacade.NodeTypes}}" SelectedValue="{Binding NodeType,Converter={StaticResourceCheckConverter}, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" SelectedValuePath="Value" DisplayMemberPath="Header" Margin="0"> </telerikRad:RadComboBox> </DataTemplate>private void radPropertyGrid1_AutoGeneratingPropertyDefinition(object sender, AutoGeneratingPropertyDefinitionEventArgs e) { if(e.PropertyDefinition.DisplayName == "NodeType") { var templateName = string.Format("{0}Template",e.PropertyDefinition.DisplayName); e.PropertyDefinition.EditorTemplate = templateSelector.GetTemplate(templateName); }}
