A style that renders action controls as images.
Inheritance: ActionControlStyle
コード例 #1
0
        /// <summary>
        /// Initializes defaults for MonthViewCalendar attributes.
        /// </summary>
        public MonthViewCalendar()
        {
            PreviousButtonText = "Previous";
            PreviousButton = new ImageActionControlStyle( "~/Ewf/Images/Calendar/button_previous.gif" ) { AlternateText = PreviousButtonText };
            CurrentDateButtonText = "Current Date";
            CurrentDateButton =
                new ImageActionControlStyle( IsTwoWeekCalendar ? "~/Ewf/Images/Calendar/button_currentweek.gif" : "~/Ewf/Images/Calendar/button_currentmonth.gif" )
                    {
                        AlternateText = CurrentDateButtonText
                    };

            NextButtonText = "Next";
            NextButton = new ImageActionControlStyle( "~/Ewf/Images/Calendar/button_next.gif" ) { AlternateText = NextButtonText };
        }
コード例 #2
0
        /// <summary>
        /// Initializes defaults for MonthViewCalendar attributes.
        /// </summary>
        public MonthViewCalendar()
        {
            PreviousButtonText = "Previous";
            PreviousButton     = new ImageActionControlStyle(new ExternalResourceInfo("~/Ewf/Images/Calendar/button_previous.gif"))
            {
                AlternateText = PreviousButtonText
            };
            CurrentDateButtonText = "Current Date";
            CurrentDateButton     =
                new ImageActionControlStyle(
                    IsTwoWeekCalendar
                                                ? new ExternalResourceInfo("~/Ewf/Images/Calendar/button_currentweek.gif")
                                                : new ExternalResourceInfo("~/Ewf/Images/Calendar/button_currentmonth.gif"))
            {
                AlternateText = CurrentDateButtonText
            };


            NextButtonText = "Next";
            NextButton     = new ImageActionControlStyle(new ExternalResourceInfo("~/Ewf/Images/Calendar/button_next.gif"))
            {
                AlternateText = NextButtonText
            };
        }