Here are the examples of the csharp api class System.Windows.Forms.ControlPaint.Dark(System.Drawing.Color) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
26 Examples
0
1. Example
Project: Krypton
Source File: DesignTimeDraw.cs
Source File: DesignTimeDraw.cs
public static void DrawFlapArea(KryptonRibbon ribbon, RenderContext context, Rectangle clientRect, PaletteState state) { Color c; if (state == PaletteState.Normal) c = ControlPaint.Dark(ribbon.StateCommon.RibbonGeneral.GetRibbonGroupSeparatorDark(PaletteState.Normal)); else c = ribbon.StateCommon.RibbonGroupButton.Back.GetBackColor1(PaletteState.Tracking); // Draw border around entire area Rectangle drawRect = clientRect; drawRect.Width -= DESIGN_SEP_WIDTH; drawRect.Height--; drawRect.X++; using (Pen darkPen = new Pen(c)) context.Graphics.DrawRectangle(darkPen, drawRect); // Draw the flap in the dark color drawRect.Width = DESIGN_FLAP_WIDTH - 2; using (SolidBrush darkBrush = new SolidBrush(c)) context.Graphics.FillRectangle(darkBrush, drawRect); }
0
2. Example
Project: CMS
Source File: ColorExtensions.cs
Source File: ColorExtensions.cs
public static Color Dark(this Color color) { return ControlPaint.Dark(color); }
0
3. Example
Project: dp2
Source File: ItemEditControlBase.cs
Source File: ItemEditControlBase.cs
void ResetColor(Label color, Control edit) { EditLineState newState = color.Tag /n ..... /n //View Source file for more details /n }
0
4. Example
Project: kit-kat
Source File: MainForm.cs
Source File: MainForm.cs
private void ThemeUpdater() { #region Main BackColor = Settings.Defa/n ..... /n //View Source file for more details /n }
0
5. Example
Project: Krypton
Source File: RenderStandard.cs
Source File: RenderStandard.cs
private void DrawDragDockingArrow(RenderContext context, C/n ..... /n //View Source file for more details /n }
0
6. Example
Project: SquareOne
Source File: HRuler.cs
Source File: HRuler.cs
protected override void OnPaintBackground(PaintEventArgs e) { // paint background Form parentForm = _textArea.MotherTextEditorControl.ParentForm; Color backColor = (parentForm != null) ? parentForm.BackColor : SystemColors.Control; using (SolidBrush brush = new SolidBrush(backColor)) e.Graphics.FillRectangle(brush, ClientRectangle); using (Pen pen = new Pen(ControlPaint.Dark(backColor))) e.Graphics.DrawLine(pen, ClientRectangle.Left, ClientRectangle.Bottom - 1, ClientRectangle.Right, ClientRectangle.Bottom -1); }
0
7. Example
Project: Krypton
Source File: ViewDrawRibbonContextTitle.cs
Source File: ViewDrawRibbonContextTitle.cs
public override void RenderBefore(RenderContext context) { // Office 2010 draws /n ..... /n //View Source file for more details /n }
0
8. Example
Project: Krypton
Source File: RenderGlassHelpers.cs
Source File: RenderGlassHelpers.cs
public static IDisposable DrawBackGlassFade(RenderContext context, /n ..... /n //View Source file for more details /n }
0
9. Example
Project: dp2
Source File: PlusButton.cs
Source File: PlusButton.cs
protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); /n ..... /n //View Source file for more details /n }
0
10. Example
Project: SquareOne
Source File: IconMargin.cs
Source File: IconMargin.cs
protected override void OnPaint(PaintEventArgs eventArgs) { Graphics g = eventArgs.Graphic/n ..... /n //View Source file for more details /n }
0
11. Example
Project: Krypton
Source File: ViewDrawRibbonContextTitle.cs
Source File: ViewDrawRibbonContextTitle.cs
public override void Layout(ViewLayoutContext context) { Debug.Assert(context !=/n ..... /n //View Source file for more details /n }
0
12. Example
Project: Krypton
Source File: RenderStandard.cs
Source File: RenderStandard.cs
private void DrawDragDockingSquaresMiddle(Graphics g, /n ..... /n //View Source file for more details /n }
0
13. Example
Project: Krypton
Source File: RenderGlassHelpers.cs
Source File: RenderGlassHelpers.cs
private static IDisposable DrawBackGlassCheckedTrackingPercent(RenderContext context, /n ..... /n //View Source file for more details /n }
0
14. Example
Project: Krypton
Source File: RenderStandard.cs
Source File: RenderStandard.cs
private void DrawDragDockingSquaresLeft(Graphics g, /n ..... /n //View Source file for more details /n }
0
15. Example
Project: Krypton
Source File: RenderStandard.cs
Source File: RenderStandard.cs
private void DrawDragDockingSquaresRight(Graphics g, /n ..... /n //View Source file for more details /n }
0
16. Example
Project: Krypton
Source File: RenderStandard.cs
Source File: RenderStandard.cs
private void DrawDragDockingSquaresTop(Graphics g, Co/n ..... /n //View Source file for more details /n }
0
17. Example
Project: Krypton
Source File: RenderStandard.cs
Source File: RenderStandard.cs
private void DrawDragDockingSquaresBottom(Graphics g, /n ..... /n //View Source file for more details /n }
0
18. Example
Project: ElectronicObserver
Source File: ImageLabel.cs
Source File: ImageLabel.cs
protected override void OnPaint(PaintEventArgs e) { Rectangle basearea = new Rectangle(Padding/n ..... /n //View Source file for more details /n }
0
19. Example
Project: Krypton
Source File: RenderGlassHelpers.cs
Source File: RenderGlassHelpers.cs
private static IDisposable DrawBackGlassPressedPercent(RenderContext context, /n ..... /n //View Source file for more details /n }
0
20. Example
Project: Krypton
Source File: RenderGlassHelpers.cs
Source File: RenderGlassHelpers.cs
private static IDisposable DrawBackGlassCheckedPercent(RenderContext context, /n ..... /n //View Source file for more details /n }
0
21. Example
Project: dp2
Source File: Field.cs
Source File: Field.cs
internal void DrawCell(Graphics g, int nCol, Rectangle rect) { Debug.Assert(g != null,"g?/n ..... /n //View Source file for more details /n }
0
22. Example
Project: JustUO
Source File: BarGraphRenderer.cs
Source File: BarGraphRenderer.cs
private void DrawBars(Graphics graph) { SolidBrush brsFont = null; F/n ..... /n //View Source file for more details /n }
0
23. Example
Project: runuo
Source File: BarGraphRenderer.cs
Source File: BarGraphRenderer.cs
private void DrawBars(Graphics graph) { SolidBrush brsFont = null; Font valFont = null; S/n ..... /n //View Source file for more details /n }
0
24. Example
Project: ServUO
Source File: BarGraphRenderer.cs
Source File: BarGraphRenderer.cs
private void DrawBars(Graphics graph) { SolidBrush brsFont = null; F/n ..... /n //View Source file for more details /n }
0
25. Example
Project: LaserGRBL
Source File: ColorSlider.cs
Source File: ColorSlider.cs
private void DrawColorSlider(PaintEventArgs e, Color thumbOuterColorPaint, Color thumbInnerColorPain/n ..... /n //View Source file for more details /n }
0
26. Example
Project: Repetier-Host
Source File: ColorSlider.cs
Source File: ColorSlider.cs
private void DrawColorSlider(PaintEventArgs e, Color thumbOuterColorPaint, Color thumbInnerColorPain/n ..... /n //View Source file for more details /n }