static MonthViewDefinition()
 {
     VisibleDaysProperty.OverrideMetadata(typeof(MonthViewDefinition), new PropertyMetadata(42));
     TimeSlotLengthProperty.OverrideMetadata(
         typeof(MonthViewDefinition), new PropertyMetadata(TimeSpan.FromDays(1)));
     SmallChangeIntervalProperty.OverrideMetadata(
         typeof(MonthViewDefinition), new PropertyMetadata(DateTimeInterval.FromDays(7)));
     LargeChangeIntervalProperty.OverrideMetadata(
         typeof(MonthViewDefinition), new PropertyMetadata(DateTimeInterval.FromMonths(1)));
 }
 static TimelineViewDefinition()
 {
     VisibleDaysProperty.OverrideMetadata(typeof(TimelineViewDefinition), new PropertyMetadata(7));
     LargeChangeIntervalProperty.OverrideMetadata(
         typeof(TimelineViewDefinition), new PropertyMetadata(DateTimeInterval.FromDays(7)));
     SmallChangeIntervalProperty.OverrideMetadata(
         typeof(TimelineViewDefinition), new PropertyMetadata(DateTimeInterval.FromDays(1)));
     TimeSlotLengthProperty.OverrideMetadata(
         typeof(TimelineViewDefinition), new PropertyMetadata(TimeSpan.FromDays(1), OnTimeSlotLengthPropertyChanged));
 }
Exemple #3
0
 static WeekViewDefinition()
 {
     VisibleDaysProperty.OverrideMetadata(typeof(WeekViewDefinition), new PropertyMetadata(7));
     LargeChangeIntervalProperty.OverrideMetadata(
         typeof(WeekViewDefinition), new PropertyMetadata(DateTimeInterval.FromDays(7)));
 }