• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# PaletteBackStyle类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: 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


示例2: GetBackColor1

        /// <summary>
        /// Gets the first background color.
        /// </summary>
        /// <param name="style">Background style.</param>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>Color value.</returns>
        public override Color GetBackColor1(PaletteBackStyle style, PaletteState state)
        {
            // Only override system palette if a recognized office 2003 color scheme is used
            if (_usingOffice2003)
            {
                switch (style)
                {
                    case PaletteBackStyle.ContextMenuItemHighlight:
                        switch (state)
                        {
                            case PaletteState.Disabled:
                                return SystemColors.Control;
                            case PaletteState.Normal:
                                return Color.Empty;
                            case PaletteState.Tracking:
                                return ColorTable.MenuItemSelectedGradientBegin;
                        }
                        break;
                    case PaletteBackStyle.HeaderDockInactive:
                        if (state == PaletteState.Disabled)
                            return SystemColors.Control;
                        else
                            return ColorTable.ButtonCheckedHighlight;
                    case PaletteBackStyle.HeaderDockActive:
                        if (state == PaletteState.Disabled)
                            return SystemColors.Control;
                        else
                            return SystemColors.Highlight;
                }
            }

            return base.GetBackColor1(style, state);
        }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:39,代码来源:PaletteProfessionalOffice2003.cs


示例3: 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


示例4: GetBackColor2

 /// <summary>
 /// Gets the second back color.
 /// </summary>
 /// <param name="style">Background style.</param>
 /// <param name="state">Palette value should be applicable to this state.</param>
 /// <returns>Color value.</returns>
 public override Color GetBackColor2(PaletteBackStyle style, PaletteState state)
 {
     IPaletteTriple inherit = GetInherit(state);
     if (inherit != null)
         return inherit.PaletteBack.GetBackColor2(state);
     else
         return base.GetBackColor2(style, state);
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:14,代码来源:PaletteRedirectCommon.cs


示例5: GetBackColor2

        /// <summary>
        /// Gets the second back color.
        /// </summary>
        /// <param name="style">Background style.</param>
        /// <param name="state">Palette value should be applicable to this state.</param>
        /// <returns>Color value.</returns>
        public override Color GetBackColor2(PaletteBackStyle style, PaletteState state)
        {
            IPaletteBack inherit = GetInheritBack(style, state);

            if (inherit != null)
                return inherit.GetBackColor2(state);
            else
                return Target.GetBackColor2(style, state);
        }
开发者ID:Cocotteseb,项目名称:Krypton,代码行数:15,代码来源:PaletteRedirectGrids.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: DataGridViewStyles

 /// <summary>
 /// Initialize a new instance of the DataGridViewStyles class.
 /// </summary>
 /// <param name="dataGridView">Reference to owning control.</param>
 public DataGridViewStyles(KryptonDataGridView dataGridView)
 {
     Debug.Assert(dataGridView != null);
     _dataGridView = dataGridView;
     _gridStyle = DataGridViewStyle.List;
     _columnStyle = GridStyle.List;
     _rowStyle = GridStyle.List;
     _dataCellStyle = GridStyle.List;
     _backgroundStyle = PaletteBackStyle.GridBackgroundList;
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:14,代码来源:KryptonDataGridViewStyles.cs


示例8: 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


示例9: KryptonPalettePanel

 /// <summary>
 /// Initialize a new instance of the KryptonPalettePanel class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="backStyle">Back style.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPalettePanel(PaletteRedirect redirect,
                            PaletteBackStyle backStyle,
                            NeedPaintHandler needPaint)
 {
     // Create the storage objects
     _stateInherit = new PaletteBackInheritRedirect(redirect, backStyle);
     _stateCommon = new PaletteBack(_stateInherit, needPaint);
     _stateDisabled = new PaletteBack(_stateCommon, needPaint);
     _stateNormal = new PaletteBack(_stateCommon, needPaint);
 }
开发者ID:ComponentFactory,项目名称:Krypton,代码行数:16,代码来源:KryptonPalettePanel.cs


示例10: 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


示例11: 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


示例12: 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


示例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: 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


示例15: 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


示例16: 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


示例17: 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


示例18: 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


示例19: 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


示例20: 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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# PaletteBorderStyle类代码示例发布时间:2022-05-24
下一篇:
C# Palette类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap