Inheritance: ViewDrawCanvas
示例#1
0
        /// <summary>
        /// Initialize a new instance of the MenuItemController class.
        /// </summary>
        /// <param name="viewManager">Owning view manager instance.</param>
        /// <param name="menuItem">Target menu item view element.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public MenuItemController(ViewContextMenuManager viewManager,
                                  ViewDrawMenuItem menuItem,
                                  NeedPaintHandler needPaint)
        {
            Debug.Assert(viewManager != null);
            Debug.Assert(menuItem != null);
            Debug.Assert(needPaint != null);

            _viewManager = viewManager;
            _menuItem    = menuItem;
            NeedPaint    = needPaint;
        }
示例#2
0
        /// <summary>
        /// Initialize a new instance of the MenuItemController class.
        /// </summary>
        /// <param name="viewManager">Owning view manager instance.</param>
        /// <param name="menuItem">Target menu item view element.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        public MenuItemController(ViewContextMenuManager viewManager,
                                  ViewDrawMenuItem menuItem,
                                  NeedPaintHandler needPaint)
        {
            Debug.Assert(viewManager != null);
            Debug.Assert(menuItem != null);
            Debug.Assert(needPaint != null);

            _viewManager = viewManager;
            _menuItem = menuItem;
            NeedPaint = needPaint;
        }