or
PdfFormatProvider prov = (PdfFormatProvider)formatProvider;
PdfExportSettings set = new PdfExportSettings();
set.CommentsExportMode = PdfCommentsExportMode.NativePdfAnnotations;
prov.ExportSettings = set;
prov.Export(document, streamer);
<
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
>