コード例 #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"));
 }
コード例 #2
0
 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());
 }
コード例 #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();
        }
コード例 #4
0
 public HandlePrimaryView()
 {
     this.InitializeComponent();
     ResetBorder.Background  = new SolidColorBrush(HexToColor.GetColor("778899"));
     ResetBorder.BorderBrush = new SolidColorBrush(HexToColor.GetColor("778899"));
 }
コード例 #5
0
 public MainPage()
 {
     this.InitializeComponent();
     TimerBackground.BorderBrush = new SolidColorBrush(HexToColor.GetColor("778899"));
     TimerBackground.Background  = new SolidColorBrush(HexToColor.GetColor("778899"));
 }