Пример #1
0
        private void SetYear()
        {
            _cellWidth = 150;
            _fontSize = _cellWidth / 7.5;
            stkDayName.Visibility = Visibility.Collapsed;

            btnRight.IsEnabled = btnLeft.IsEnabled = true;

            btnState.Content = _currentYear;
            _buttonState = CalenderButtonState.Month;
            PopulateMonths();
        }
Пример #2
0
        private void SetYearWithYearItem()
        {
            _cellWidth = 150;
            _fontSize = _cellWidth / 7.5;
            stkDayName.Visibility = Visibility.Collapsed;

            btnState.Content = _currentYear;
            _buttonState = CalenderButtonState.Year;
            PopulateYears();
        }
Пример #3
0
 private void SetMonth()
 {
     _cellWidth = 100;
     _fontSize = _cellWidth / 8.5;
     stkDayName.Visibility = Visibility.Visible;
     Sunday.Width = _cellWidth;
     Sunday.FontSize = _fontSize;
     btnLeft.IsEnabled = _currentMonth > 1;
     btnRight.IsEnabled = _currentMonth < 12;
     btnState.Content = GetMonthName((MonthNameType)_currentMonth) + ", " + _currentYear;
     _buttonState = CalenderButtonState.Day;
     PopulateDays();
 }