Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Model = ((Calendar.CalendarViewModel)(target));
                return;

            case 2:
                this.LayoutGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.richTextBoxRibbonUI = ((Telerik.Windows.Controls.RichTextBoxUI.RadRichTextBoxRibbonUI)(target));
                return;

            case 4:

            #line 44 "..\..\..\Views\CalendarView.xaml"
                ((Telerik.Windows.Controls.RadRibbonButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RadRibbonButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.OutlookBar = ((Telerik.Windows.Controls.RadOutlookBar)(target));
                return;

            case 6:
                this.CalendarScheduleView = ((Telerik.Windows.Controls.RadScheduleView)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
 public CalendarView(CalendarGlobalData cgd)
 {
     InitializeComponent();
     calendarGlobalData = cgd;
     InitiateCommonVariables();
     cvm             = new CalendarViewModel(this);
     BindingContext  = cvm;
     cvm.CurrentDate = string.Format("{0}, {1}", calendarUI_DT.ToString("MMMM"), calendarUI_DT.Year);
     if (weekEndingDay != null)
     {
         wed = Array.IndexOf(GlobalVar.WeekDays, weekEndingDay.ToLower());
     }
     tapGestureRecognizer.Tapped += DateSelected;
     //the first view will be of Current month
     MonthLayout(calendarUI_DT);
 }
Ejemplo n.º 3
0
 public CalendarView()
 {
     InitializeComponent();
     _viewModel = (CalendarViewModel)DataContext;
 }