コード例 #1
0
 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)));
 }
コード例 #2
0
 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));
 }
コード例 #3
0
 static MultidayViewDefinition()
 {
     TimeSlotLengthProperty.OverrideMetadata(
         typeof(MultidayViewDefinition), new PropertyMetadata(TimeSpan.FromMinutes(30)));
 }