当前位置: 首页>>代码示例>>C#>>正文


C# Navigator.KryptonPage类代码示例

本文整理汇总了C#中ComponentFactory.Krypton.Navigator.KryptonPage的典型用法代码示例。如果您正苦于以下问题:C# KryptonPage类的具体用法?C# KryptonPage怎么用?C# KryptonPage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


KryptonPage类属于ComponentFactory.Krypton.Navigator命名空间,在下文中一共展示了KryptonPage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: KryptonContextMenuEventArgs

 /// <summary>
 /// Initialize a new instance of the KryptonContextMenuEventArgs class.
 /// </summary>
 /// <param name="page">Page effected by event.</param>
 /// <param name="index">Index of page in the owning collection.</param>
 /// <param name="contextMenu">Prepopulated context menu ready for display.</param>
 public KryptonContextMenuEventArgs(KryptonPage page, 
                                    int index,
                                    KryptonContextMenu contextMenu)
     : base(page, index)
 {
     _contextMenu = contextMenu;
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:13,代码来源:KryptonContextMenuStripEventArgs.cs

示例2: PageLoadingEventArgs

 /// <summary>
 /// Initialize a new instance of the PageLoadingEventArgs class.
 /// </summary>
 /// <param name="workspace">Reference to owning workspace control.</param>
 /// <param name="page">Reference to owning workspace cell page.</param>
 /// <param name="xmlReader">Xml reader for persisting custom data.</param>
 public PageLoadingEventArgs(KryptonWorkspace workspace,
                             KryptonPage page,
                             XmlReader xmlReader)
     : base(workspace, xmlReader)
 {
     _page = page;
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:13,代码来源:PageLoadingEventArgs.cs

示例3: DirectionActionEventArgs

 /// <summary>
 /// Initialize a new instance of the DirectionActionEventArgs class.
 /// </summary>
 /// <param name="page">Page effected by event.</param>
 /// <param name="index">Index of page in the owning collection.</param>
 /// <param name="action">Previous/Next action to take.</param>
 public DirectionActionEventArgs(KryptonPage page, 
     int index,
     DirectionButtonAction action)
     : base(page, index)
 {
     _action = action;
 }
开发者ID:yp25,项目名称:Krypton,代码行数:13,代码来源:DirectionActionEventArgs.cs

示例4: CreatePage

        private KryptonPage CreatePage()
        {
            // Give each page a unique number
            string pageNumber = (_count++).ToString();

            // Create a new page and give it a name and image
            KryptonPage page = new KryptonPage();
            page.Text = "P" + pageNumber;
            page.TextTitle = "P" + pageNumber + " Title";
            page.TextDescription = "P" + pageNumber + " Description";
            page.ImageSmall = imageList.Images[_count % imageList.Images.Count];
            page.MinimumSize = new Size(200, 250);

            // Create a rich text box with some sample text inside
            KryptonRichTextBox rtb = new KryptonRichTextBox();
            rtb.Text = "This page (" + page.Text + ") contains a rich text box control as example content. Your application could place anything you like here such as data entry controls, charts, data grids etc.\n\nTry dragging the page headers in order to rearrange the workspace layout.";
            rtb.Dock = DockStyle.Fill;
            rtb.StateCommon.Border.Draw = InheritBool.False;

            // Add rich text box as the contents of the page
            page.Padding = new Padding(5);
            page.Controls.Add(rtb);

            return page;
        }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:25,代码来源:Form1.cs

示例5: DockPageLoadingEventArgs

 /// <summary>
 /// Initialize a new instance of the DockPageLoadingEventArgs class.
 /// </summary>
 /// <param name="manager">Reference to owning docking manager instance.</param>
 /// <param name="xmlReading">Xml reader for persisting custom data.</param>
 /// <param name="page">Reference to page being loaded.</param>
 public DockPageLoadingEventArgs(KryptonDockingManager manager,
                                 XmlReader xmlReading,
                                 KryptonPage page)
     : base(manager, xmlReading)
 {
     _page = page;
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:13,代码来源:DockPageLoadingEventArgs.cs

示例6: buttonAddPage_Click

 private void buttonAddPage_Click(object sender, EventArgs e)
 {
     KryptonPage newPage = new KryptonPage();
     newPage.Text = "Page " + _newPage.ToString();
     newPage.ImageSmall = imageList1.Images[_newPage++ % imageList1.Images.Count];
     kryptonNavigator1.Pages.Add(newPage);
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:7,代码来源:Form1.cs

示例7: CloseActionEventArgs

 /// <summary>
 /// Initialize a new instance of the CloseActionEventArgs class.
 /// </summary>
 /// <param name="page">Page effected by event.</param>
 /// <param name="index">Index of page in the owning collection.</param>
 /// <param name="action">Close action to take.</param>
 public CloseActionEventArgs(KryptonPage page, 
                             int index, 
                             CloseButtonAction action)
     : base(page, index)
 {
     _action = action;
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:13,代码来源:CloseActionEventArgs.cs

示例8: PageSavingEventArgs

 /// <summary>
 /// Initialize a new instance of the PageSavingEventArgs class.
 /// </summary>
 /// <param name="workspace">Reference to owning workspace control.</param>
 /// <param name="page">Reference to owning workspace cell page.</param>
 /// <param name="xmlWriter">Xml writer for persisting custom data.</param>
 public PageSavingEventArgs(KryptonWorkspace workspace,
                            KryptonPage page,
                            XmlWriter xmlWriter)
     : base(workspace, xmlWriter)
 {
     _page = page;
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:13,代码来源:PageSavingEventArgs.cs

示例9: DockPageSavingEventArgs

 /// <summary>
 /// Initialize a new instance of the DockPageSavingEventArgs class.
 /// </summary>
 /// <param name="manager">Reference to owning docking manager instance.</param>
 /// <param name="xmlWriter">Xml writer for persisting custom data.</param>
 /// <param name="page">Reference to page being saved.</param>
 public DockPageSavingEventArgs(KryptonDockingManager manager,
                                XmlWriter xmlWriter,
                                KryptonPage page)
     : base(manager, xmlWriter)
 {
     _page = page;
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:13,代码来源:DockPageSavingEventArgs.cs

示例10: PopupPageEventArgs

 /// <summary>
 /// Initialize a new instance of the PopupPageEventArgs class.
 /// </summary>
 /// <param name="page">Page effected by event.</param>
 /// <param name="index">Index of page in the owning collection.</param>
 /// <param name="screenRect">Screen rectangle for showing the popup.</param>
 public PopupPageEventArgs(KryptonPage page, 
                           int index, 
                           Rectangle screenRect)
     : base(page, index)
 {
     _screenRect = screenRect;
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:13,代码来源:PopupPageEventArgs.cs

示例11: ViewDrawNavOutlookStack

 /// <summary>
 /// Initialize a new instance of the ViewDrawNavOutlookStack class.
 /// </summary>
 /// <param name="navigator">Owning navigator instance.</param>
 /// <param name="page">Page this check button represents.</param>
 /// <param name="orientation">Orientation for the check button.</param>
 public ViewDrawNavOutlookStack(KryptonNavigator navigator,
                                KryptonPage page,
                                VisualOrientation orientation)
     : base(navigator, page, orientation)
 {
     // Are we mapping for the full or the mini mode?
     _full = (navigator.NavigatorMode == NavigatorMode.OutlookFull);
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:14,代码来源:ViewDrawNavOutlookStack.cs

示例12: ContextPageEventArgs

 /// <summary>
 /// Initialize a new instance of the ContextPageEventArgs class.
 /// </summary>
 /// <param name="page">Page associated with the context menu.</param>
 /// <param name="contextMenu">Context menu that can be customized.</param>
 /// <param name="cancel">Initial value for the cancel property.</param>
 public ContextPageEventArgs(KryptonPage page, 
                             KryptonContextMenu contextMenu,
                             bool cancel)
     : base(cancel)
 {
     _page = page;
     _contextMenu = contextMenu;
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:14,代码来源:ContextPageEventArgs.cs

示例13: ContextActionEventArgs

 /// <summary>
 /// Initialize a new instance of the ContextActionEventArgs class.
 /// </summary>
 /// <param name="page">Page effected by event.</param>
 /// <param name="index">Index of page in the owning collection.</param>
 /// <param name="action">Close action to take.</param>
 /// <param name="contextMenu">Prepopulated context menu ready for display.</param>
 public ContextActionEventArgs(KryptonPage page, 
                               int index, 
                               ContextButtonAction action,
                               KryptonContextMenu contextMenu)
     : base(page, index, contextMenu)
 {
     _action = action;
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:15,代码来源:ContextActionEventArgs.cs

示例14: PageReorderEventArgs

 /// <summary>
 /// Initialize a new instance of the PageReorderEventArgs class.
 /// </summary>
 /// <param name="pageMoving">Reference to page being moved.</param>
 /// <param name="pageTarget">Reference to target paged.</param>
 /// <param name="movingBefore">True if moving page is to be positioned before the target; otherwise after the target.</param>
 public PageReorderEventArgs(KryptonPage pageMoving, 
                             KryptonPage pageTarget, 
                             bool movingBefore)
 {
     _pageMoving = pageMoving;
     _pageTarget = pageTarget;
     _movingBefore = movingBefore;
 }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:14,代码来源:PageReorderEventArgs.cs

示例15: ViewLayoutPopupPage

        /// <summary>
        /// Initialize a new instance of the ViewLayoutPopupPage class.
        /// </summary>
        /// <param name="navigator">Reference to owning navigator control.</param>
        /// <param name="page">Page to the positioned.</param>
        public ViewLayoutPopupPage(KryptonNavigator navigator,
                                   KryptonPage page)
        {
            Debug.Assert(navigator != null);
            Debug.Assert(page != null);

            _navigator = navigator;
            _page = page;
        }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:14,代码来源:ViewLayoutPopupPage.cs


注:本文中的ComponentFactory.Krypton.Navigator.KryptonPage类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。