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(); }
private void SetYearWithYearItem() { _cellWidth = 150; _fontSize = _cellWidth / 7.5; stkDayName.Visibility = Visibility.Collapsed; btnState.Content = _currentYear; _buttonState = CalenderButtonState.Year; PopulateYears(); }
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(); }