本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}