Ejemplo n.º 1
0
 private void Loaded(object sender, RoutedEventArgs e)
 {
     ViewModel = ((NotificationVm)(MainGrid.DataContext));
     handler   = ViewModel.handler;
     initAnimations();
     BottomBarNotification.ButtonShowEvent += new EventHandler(ShowNotificationItem);
     ViewCalendarItem.ButtonCloseEvent     += new EventHandler(CloseNotificationItem);
     PrimaryTopBorder.BorderBrush           = new SolidColorBrush(HexToColor.GetColor("204c6a"));
 }
 private void InitView()
 {
     Container.BorderBrush = new SolidColorBrush(HexToColor.GetColor("#6893b4"));
     Header.Background     = new SolidColorBrush(HexToColor.GetColor("#88badd"));
     ItemTitle.Text        = CurrentItem.Title;
     ItemDate.Text         = (ViewModel.GetType() == typeof(CalendarVm)
         ? ((CalendarVm)ViewModel).SelectedDateFormat
         : ViewModel.GetType() == typeof(ActivityVm)
             ? ((ActivityVm)ViewModel).SelectedActivity.Date.ToString()
             : ((NotificationVm)ViewModel).SelectedNotification.Date.ToString());
 }
Ejemplo n.º 3
0
        public TutorialUc(List <Tutorial> tutorials)
        {
            this.InitializeComponent();
            TopBorder.Background  = new SolidColorBrush(HexToColor.GetColor("778899"));
            Container.BorderBrush = new SolidColorBrush(HexToColor.GetColor("778899"));
            Width  = 300;
            Height = 0;

            _sizeAnimations     = new List <GuiAnimation>();
            _positionAnimations = new List <GuiAnimation>();
            _tutorials          = new List <Tutorial>();
            _tutorials          = tutorials;

            SetContent();
            SetButtons();
        }
 public HandlePrimaryView()
 {
     this.InitializeComponent();
     ResetBorder.Background  = new SolidColorBrush(HexToColor.GetColor("778899"));
     ResetBorder.BorderBrush = new SolidColorBrush(HexToColor.GetColor("778899"));
 }
Ejemplo n.º 5
0
 public MainPage()
 {
     this.InitializeComponent();
     TimerBackground.BorderBrush = new SolidColorBrush(HexToColor.GetColor("778899"));
     TimerBackground.Background  = new SolidColorBrush(HexToColor.GetColor("778899"));
 }