public CalendarPageViewModel(Timeline parentTimeline, CalendarConfiguration config, Date initialDate)
 {
     _timelineField            = parentTimeline;
     _config                   = config;
     _advancedDate             = new AdvancedDate(initialDate, config);
     MoveCalendarForwardClick  = new BindableCommand(OnMoveCalendarForwardButtonClick);
     MoveCalendarBackwardClick = new BindableCommand(OnMoveCalendarBackwardClick);
 }
Ejemplo n.º 2
0
        public CalendarPage(Timeline timeline, CalendarConfiguration config, Date initialDate)
        {
            viewModel = new CalendarPageViewModel(timeline, config, initialDate);
            viewModel.CalendarDateChanged += ViewModel_CalendarDateChanged;
            //NoteListView += ContentCollectionChanged;

            DataContext = viewModel;

            InitializeComponent();

            ReloadCalendar();
        }
 public AdvancedDate(Date initalDate, CalendarConfiguration config)
 {
     _date   = initalDate;
     _config = config;
 }