Navigator view element for drawing a selected check button for the Outlook mini mode.
Inheritance: ViewDrawNavCheckButtonBase
Exemple #1
0
        /// <summary>
        /// Create the mode specific view hierarchy.
        /// </summary>
        /// <returns>View element to use as base of hierarchy.</returns>
        protected override ViewBase CreateView()
        {
            // Create the button used as the filler for the main area
            _selectedButton = new ViewDrawNavOutlookMini(Navigator,
                                                         Navigator.SelectedPage,
                                                         VisualOrientation.Left);

            // Set the correct initial orientation of the selected mini button
            _selectedButton.Orientation = (Navigator.Outlook.Orientation == Orientation.Vertical ?
                                           VisualOrientation.Left : VisualOrientation.Top);

            // Need to know when check button needs repainting
            _selectedButton.NeedPaint = NeedPaintDelegate;

            return(base.CreateView());
        }
        /// <summary>
        /// Create the mode specific view hierarchy.
        /// </summary>
        /// <returns>View element to use as base of hierarchy.</returns>
        protected override ViewBase CreateView()
        {
            // Create the button used as the filler for the main area
            _selectedButton = new ViewDrawNavOutlookMini(Navigator,
                                                         Navigator.SelectedPage,
                                                         VisualOrientation.Left);

            // Set the correct initial orientation of the selected mini button
            _selectedButton.Orientation = (Navigator.Outlook.Orientation == Orientation.Vertical ?
                                           VisualOrientation.Left : VisualOrientation.Top);

            // Need to know when check button needs repainting
            _selectedButton.NeedPaint = NeedPaintDelegate;

            return base.CreateView();
        }