or
<sv:RadScheduleView x:Name="Scheduler" AppointmentsSource="{Binding Appointments}" Loaded="Scheduler_Loaded" MouseLeftButtonUp="Scheduler_MouseLeftButtonUp" ShowDialog="Scheduler_ShowDialog" ResourceTypesSource="{Binding ResourceTypes}" AppointmentCreating="Scheduler_AppointmentCreating" > <sv:RadScheduleView.ViewDefinitions> <sv:DayViewDefinition ShowAllDayArea="True" MajorTickLength="1h" MinorTickLength="30min" /> <sv:WeekViewDefinition ShowAllDayArea="True" MajorTickLength="1h" MinorTickLength="30min" /> <sv:MonthViewDefinition /> </sv:RadScheduleView.ViewDefinitions> <sv:RadScheduleView.GroupDescriptionsSource> <sv:GroupDescriptionCollection> <sv:DateGroupDescription /> <sv:ResourceGroupDescription ResourceType="Speaker" /> </sv:GroupDescriptionCollection> </sv:RadScheduleView.GroupDescriptionsSource> </sv:RadScheduleView>class SpecialSlotStyleSelector:ScheduleViewStyleSelector { private Style nonworkingHourStyle; public Style NonworkingHourStyle { get { return this.nonworkingHourStyle; } set { this.nonworkingHourStyle = value; } } public override Style SelectStyle(object item, DependencyObject container, ViewDefinitionBase activeViewDefinition) { return this.NonworkingHourStyle; } }<s:SpecialSlotStyleSelector x:Key="SpecialSlotStyleSelector"> <s:SpecialSlotStyleSelector.NonworkingHourStyle> <Style TargetType="{x:Type sv:HighlightItem}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <Border Background="LightGray" Opacity="0.8" /> </ControlTemplate> </Setter.Value> </Setter> </Style> </s:SpecialSlotStyleSelector.NonworkingHourStyle> </s:SpecialSlotStyleSelector>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); }}
