本文整理汇总了C#中PaletteBorderStyle类的典型用法代码示例。如果您正苦于以下问题:C# PaletteBorderStyle类的具体用法?C# PaletteBorderStyle怎么用?C# PaletteBorderStyle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PaletteBorderStyle类属于命名空间,在下文中一共展示了PaletteBorderStyle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: NavigatorOutlook
/// <summary>
/// Initialize a new instance of the NavigatorOutlook class.
/// </summary>
/// <param name="navigator">Reference to owning navigator instance.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public NavigatorOutlook(KryptonNavigator navigator,
NeedPaintHandler needPaint)
{
Debug.Assert(navigator != null);
// Remember back reference
_navigator = navigator;
// Store the provided paint notification delegate
NeedPaint = needPaint;
// Create compound objects
_full = new NavigatorOutlookFull(navigator, needPaint);
_mini = new NavigatorOutlookMini(navigator, needPaint);
// Default values
_checkButtonStyle = ButtonStyle.NavigatorStack;
_overflowButtonStyle = ButtonStyle.NavigatorOverflow;
_borderEdgeStyle = PaletteBorderStyle.ControlClient;
_orientation = Orientation.Vertical;
_itemOrientation = ButtonOrientation.Auto;
_headerSecondaryVisible = InheritBool.False;
_textMoreButtons = _defaultMoreButtons;
_textFewerButtons = _defaultFewerButtons;
_textAddRemoveButtons = _defaultAddRemoveButtons;
_showDropDownButton = true;
}
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:32,代码来源:NavigatorOutlook.cs
示例2: KryptonPaletteForm
/// <summary>
/// Initialize a new instance of the KryptonPaletteForm class.
/// </summary>
/// <param name="redirect">Redirector to inherit values from.</param>
/// <param name="backStyle">Background style.</param>
/// <param name="borderStyle">Border style.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public KryptonPaletteForm(PaletteRedirect redirect,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
NeedPaintHandler needPaint)
: base(redirect, backStyle, borderStyle, needPaint)
{
}
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:14,代码来源:KryptonPaletteForm.cs
示例3: PaletteBorderToPalette
/// <summary>
/// Initialize a new instance of the PaletteBorderToPalette class.
/// </summary>
/// <param name="palette">Source for getting all values.</param>
/// <param name="style">Style of values required.</param>
public PaletteBorderToPalette(IPalette palette,
PaletteBorderStyle style)
{
// Remember inheritance
_palette = palette;
_style = style;
}
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:12,代码来源:PaletteBorderToPalette.cs
示例4: PaletteTripleJustImageRedirect
/// <summary>
/// Initialize a new instance of the PaletteTripleJustImageRedirect class.
/// </summary>
/// <param name="redirect">Inheritence redirection instance.</param>
/// <param name="backStyle">Initial background style.</param>
/// <param name="borderStyle">Initial border style.</param>
/// <param name="contentStyle">Initial content style.</param>
public PaletteTripleJustImageRedirect(PaletteRedirect redirect,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
PaletteContentStyle contentStyle)
: this(redirect, backStyle, borderStyle, contentStyle, null)
{
}
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:14,代码来源:PaletteTripleJustImageRedirect.cs
示例5: GetBorderColor1
/// <summary>
/// Gets the first border color.
/// </summary>
/// <param name="style">Border style.</param>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>Color value.</returns>
public override Color GetBorderColor1(PaletteBorderStyle style, PaletteState state)
{
PaletteBorderEdge inherit = GetInherit(state);
if (inherit != null)
return inherit.GetBackColor1(state);
else
return Target.GetBorderColor1(style, state);
}
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:15,代码来源:PaletteRedirectBorderEdge.cs
示例6: PaletteTreeNodeTripleRedirect
/// <summary>
/// Initialize a new instance of the PaletteTreeNodeTripleRedirect class.
/// </summary>
/// <param name="redirect">Inheritence redirection instance.</param>
/// <param name="backStyle">Initial background style.</param>
/// <param name="borderStyle">Initial border style.</param>
/// <param name="contentStyle">Initial content style.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public PaletteTreeNodeTripleRedirect(PaletteRedirect redirect,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
PaletteContentStyle contentStyle,
NeedPaintHandler needPaint)
{
Debug.Assert(redirect != null);
_nodeRedirect = new PaletteTripleRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
}
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:17,代码来源:PaletteTreeNodeTripleRedirect.cs
示例7: PaletteTripleToPalette
/// <summary>
/// Initialize a new instance of the PaletteTripleToPalette class.
/// </summary>
/// <param name="palette">Inheritence of values.</param>
/// <param name="backStyle">Initial background style.</param>
/// <param name="borderStyle">Initial border style.</param>
/// <param name="contentStyle">Initial content style.</param>
public PaletteTripleToPalette(IPalette palette,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
PaletteContentStyle contentStyle)
{
// Store the inherit instances
_back = new PaletteBackToPalette(palette, backStyle);
_border = new PaletteBorderToPalette(palette, borderStyle);
_content = new PaletteContentToPalette(palette, contentStyle);
}
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:17,代码来源:PaletteTripleToPalette.cs
示例8: GetBorderDrawBorders
/// <summary>
/// Gets a value indicating which borders to draw.
/// </summary>
/// <param name="style">Border style.</param>
/// <param name="state">Palette value should be applicable to this state.</param>
/// <returns>PaletteDrawBorders value.</returns>
public override PaletteDrawBorders GetBorderDrawBorders(PaletteBorderStyle style, PaletteState state)
{
PaletteDrawBorders paletteBorder = base.GetBorderDrawBorders(style, state);
// The ribbon caption area should only ever draw a bottom border as the maximum
if ((paletteBorder & PaletteDrawBorders.Bottom) == PaletteDrawBorders.Bottom)
return PaletteDrawBorders.Bottom;
else
return PaletteDrawBorders.None;
}
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:16,代码来源:PaletteCaptionRedirect.cs
示例9: KryptonPaletteDouble3
/// <summary>
/// Initialize a new instance of KryptonPaletteDouble3 KryptonPaletteControl class.
/// </summary>
/// <param name="redirect">Redirector to inherit values from.</param>
/// <param name="backStyle">Background style.</param>
/// <param name="borderStyle">Border style.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public KryptonPaletteDouble3(PaletteRedirect redirect,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
NeedPaintHandler needPaint)
{
// Create the storage objects
_stateCommon = new PaletteDoubleRedirect(redirect, backStyle, borderStyle, needPaint);
_stateDisabled = new PaletteDouble(_stateCommon, needPaint);
_stateNormal = new PaletteDouble(_stateCommon, needPaint);
}
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:17,代码来源:KryptonPaletteDouble3.cs
示例10: KryptonPaletteHeader
/// <summary>
/// Initialize a new instance of the KryptonPaletteHeader class.
/// </summary>
/// <param name="redirect">Redirector to inherit values from.</param>
/// <param name="backStyle">Background style.</param>
/// <param name="borderStyle">Border style.</param>
/// <param name="contentStyle">Content style.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public KryptonPaletteHeader(PaletteRedirect redirect,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
PaletteContentStyle contentStyle,
NeedPaintHandler needPaint)
{
// Create the storage objects
_stateCommon = new PaletteHeaderRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
_stateDisabled = new PaletteTripleMetric(_stateCommon, needPaint);
_stateNormal = new PaletteTripleMetric(_stateCommon, needPaint);
}
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:19,代码来源:KryptonPaletteHeader.cs
示例11: PaletteSplitContainerRedirect
/// <summary>
/// Initialize a new instance of the PaletteSplitContainerRedirect class.
/// </summary>
/// <param name="redirect">Inheritence redirection instance.</param>
/// <param name="backContainerStyle">Initial split container background style.</param>
/// <param name="borderContainerStyle">Initial split container border style.</param>
/// <param name="backSeparatorStyle">Initial separator background style.</param>
/// <param name="borderSeparatorStyle">Initial separator border style.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public PaletteSplitContainerRedirect(PaletteRedirect redirect,
PaletteBackStyle backContainerStyle,
PaletteBorderStyle borderContainerStyle,
PaletteBackStyle backSeparatorStyle,
PaletteBorderStyle borderSeparatorStyle,
NeedPaintHandler needPaint)
: base(redirect, backContainerStyle, borderContainerStyle, needPaint)
{
// Create the embedded separator palette information
_separator = new PaletteSeparatorPaddingRedirect(redirect, backSeparatorStyle, borderSeparatorStyle, needPaint);
}
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:20,代码来源:PaletteSplitContainerRedirect.cs
示例12: PaletteDoubleMetricRedirect
/// <summary>
/// Initialize a new instance of the PaletteDoubleMetricRedirect class.
/// </summary>
/// <param name="redirect">Inheritence redirection instance.</param>
/// <param name="backStyle">Style for the background.</param>
/// <param name="borderStyle">Style for the border.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public PaletteDoubleMetricRedirect(PaletteRedirect redirect,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
NeedPaintHandler needPaint)
: base(redirect,
backStyle,
borderStyle,
needPaint)
{
// Remember the redirect reference
_redirect = redirect;
}
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:19,代码来源:PaletteDoubleMetricRedirect.cs
示例13: KryptonPaletteSeparator
/// <summary>
/// Initialize a new instance of the KryptonPaletteSeparator class.
/// </summary>
/// <param name="redirect">Redirector to inherit values from.</param>
/// <param name="backStyle">Background style.</param>
/// <param name="borderStyle">Border style.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public KryptonPaletteSeparator(PaletteRedirect redirect,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
NeedPaintHandler needPaint)
{
// Create the storage objects
_stateCommon = new PaletteSeparatorPaddingRedirect(redirect, backStyle, borderStyle, needPaint);
_stateDisabled = new PaletteSeparatorPadding(_stateCommon, _stateCommon, needPaint);
_stateNormal = new PaletteSeparatorPadding(_stateCommon, _stateCommon, needPaint);
_stateTracking = new PaletteSeparatorPadding(_stateCommon, _stateCommon, needPaint);
_statePressed = new PaletteSeparatorPadding(_stateCommon, _stateCommon, needPaint);
}
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:19,代码来源:KryptonPaletteSeparator.cs
示例14: PaletteSeparatorPaddingRedirect
/// <summary>
/// Initialize a new instance of the PaletteSeparatorPaddingRedirect class.
/// </summary>
/// <param name="redirect">Inheritence redirection instance.</param>
/// <param name="backStyle">Initial background style.</param>
/// <param name="borderStyle">Initial border style.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public PaletteSeparatorPaddingRedirect(PaletteRedirect redirect,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
NeedPaintHandler needPaint)
: base(redirect, backStyle, borderStyle, needPaint)
{
Debug.Assert(redirect != null);
// Remember the redirect reference
_redirect = redirect;
// Set default value for padding property
_separatorPadding = CommonHelper.InheritPadding;
}
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:21,代码来源:PaletteSeparatorPaddingRedirect.cs
示例15: KryptonPaletteTabButton
/// <summary>
/// Initialize a new instance of the KryptonPaletteTabButton class.
/// </summary>
/// <param name="redirect">Redirector to inherit values from.</param>
/// <param name="backStyle">Background style.</param>
/// <param name="borderStyle">Border style.</param>
/// <param name="contentStyle">Content style.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public KryptonPaletteTabButton(PaletteRedirect redirect,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
PaletteContentStyle contentStyle,
NeedPaintHandler needPaint)
{
// Create the storage objects
_stateFocus = new PaletteTabTripleRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
_stateCommon = new PaletteTabTripleRedirect(redirect, backStyle, borderStyle, contentStyle, needPaint);
_stateDisabled = new PaletteTabTriple(_stateCommon, needPaint);
_stateNormal = new PaletteTabTriple(_stateCommon, needPaint);
_stateTracking = new PaletteTabTriple(_stateCommon, needPaint);
_statePressed = new PaletteTabTriple(_stateCommon, needPaint);
_stateSelected = new PaletteTabTriple(_stateCommon, needPaint);
}
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:23,代码来源:KryptonPaletteTabButton.cs
示例16: NavigatorGroup
/// <summary>
/// Initialize a new instance of the NavigatorGroup class.
/// </summary>
/// <param name="navigator">Reference to owning navigator instance.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public NavigatorGroup(KryptonNavigator navigator,
NeedPaintHandler needPaint)
{
Debug.Assert(navigator != null);
// Remember back reference
_navigator = navigator;
// Store the provided paint notification delegate
NeedPaint = needPaint;
// Default values
_groupBackStyle = PaletteBackStyle.ControlClient;
_groupBorderStyle = PaletteBorderStyle.ControlClient;
}
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:20,代码来源:NavigatorGroup.cs
示例17: PaletteTripleMetricRedirect
/// <summary>
/// Initialize a new instance of the PaletteTripleMetricRedirect class.
/// </summary>
/// <param name="redirect">Inheritence redirection instance.</param>
/// <param name="backStyle">Style for the background.</param>
/// <param name="borderStyle">Style for the border.</param>
/// <param name="contentStyle">Style for the content.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public PaletteTripleMetricRedirect(PaletteRedirect redirect,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
PaletteContentStyle contentStyle,
NeedPaintHandler needPaint)
: base(redirect,
backStyle,
borderStyle,
contentStyle,
needPaint)
{
Debug.Assert(redirect != null);
// Remember the redirect reference
_redirect = redirect;
}
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:24,代码来源:PaletteTripleMetricRedirect.cs
示例18: PaletteHeaderButtonRedirect
/// <summary>
/// Initialize a new instance of the PaletteHeaderButtonRedirect class.
/// </summary>
/// <param name="redirect">Inheritence redirection instance.</param>
/// <param name="backStyle">Initial background style.</param>
/// <param name="borderStyle">Initial border style.</param>
/// <param name="contentStyle">Initial content style.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public PaletteHeaderButtonRedirect(PaletteRedirect redirect,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
PaletteContentStyle contentStyle,
NeedPaintHandler needPaint)
: base(redirect, backStyle, borderStyle, contentStyle, needPaint)
{
Debug.Assert(redirect != null);
// Remember the redirect reference
_redirect = redirect;
// Set default value for padding property
_buttonPadding = CommonHelper.InheritPadding;
_buttonEdgeInset = -1;
}
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:24,代码来源:PaletteHeaderButtonRedirect.cs
示例19: PaletteListStateRedirect
/// <summary>
/// Initialize a new instance of the PaletteListStateRedirect class.
/// </summary>
/// <param name="redirect">Inheritence redirection instance.</param>
/// <param name="backStyle">Initial background style.</param>
/// <param name="borderStyle">Initial border style.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public PaletteListStateRedirect(PaletteRedirect redirect,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
NeedPaintHandler needPaint)
: base(redirect, backStyle, borderStyle, needPaint)
{
Debug.Assert(redirect != null);
// Remember the redirect reference
_redirect = redirect;
// Create the item redirector
_itemRedirect = new PaletteTripleRedirect(redirect,
PaletteBackStyle.ButtonListItem,
PaletteBorderStyle.ButtonListItem,
PaletteContentStyle.ButtonListItem,
needPaint);
}
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:25,代码来源:PaletteListStateRedirect.cs
示例20: PaletteDataGridViewTripleRedirect
/// <summary>
/// Initialize a new instance of the PaletteDataGridViewTripleRedirect class.
/// </summary>
/// <param name="redirect">Inheritence redirection instance.</param>
/// <param name="backStyle">Initial background style.</param>
/// <param name="borderStyle">Initial border style.</param>
/// <param name="contentStyle">Initial content style.</param>
/// <param name="needPaint">Delegate for notifying paint requests.</param>
public PaletteDataGridViewTripleRedirect(PaletteRedirect redirect,
PaletteBackStyle backStyle,
PaletteBorderStyle borderStyle,
PaletteContentStyle contentStyle,
NeedPaintHandler needPaint)
{
Debug.Assert(redirect != null);
// Store the provided paint notification delegate
NeedPaint = needPaint;
// Store the inherit instances
_backInherit = new PaletteBackInheritRedirect(redirect, backStyle);
_borderInherit = new PaletteBorderInheritRedirect(redirect, borderStyle);
_contentInherit = new PaletteContentInheritRedirect(redirect, contentStyle);
// Create storage that maps onto the inherit instances
_back = new PaletteBack(_backInherit, needPaint);
_border = new PaletteBorder(_borderInherit, needPaint);
_content = new PaletteDataGridViewContentCommon(_contentInherit, needPaint);
}
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:29,代码来源:PaletteDataGridViewTripleRedirect.cs
注:本文中的PaletteBorderStyle类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论