Skip to content

Utils.GradientStopItem

JaykeBird edited this page Feb 21, 2023 · 2 revisions

Back to home | Back to Reference | View raw text

GradientStopItem class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph SolidShineUi.Utils
  SolidShineUi.Utils.GradientStopItem[[GradientStopItem]]
  end
  subgraph System.Windows.Markup
System.Windows.Markup.IComponentConnector[[IComponentConnector]]
  end
  subgraph System.Windows.Controls
System.Windows.Controls.UserControl[[UserControl]]
  end
System.Windows.Markup.IComponentConnector --> SolidShineUi.Utils.GradientStopItem
System.Windows.Controls.UserControl --> SolidShineUi.Utils.GradientStopItem

Members

Properties

Public properties

Type Name Methods
bool ClickOnPress
Gets or sets whether the Click event should be raised when the checkbox is pressed, rather than when it is released.
get, set
Color Color
Get or set the color for this gradient stop.
get, set
GradientStop GradientStop
Get or set the gradient stop for this GradientStopItem.
get, set
bool IsSelected
Get or set whether this gradient stop is selected for editing.
get, set
double Offset
Get or set the offset value for this gradient stop. The offset determines how far along the gradient this stop occurs.
get, set
Brush StopFill
Get or set the brush used for the background of the gradient stop glyph.
get, set
Brush StopSelectedFill
Get or set the brush used for the background of the stop glyph while it is selected
(i.e. the IsSelected property is true).
get, set

Methods

Public methods

Returns Name
void DoClick()
Perform a click programattically. The checkbox responds the same way as if it was clicked by the user.
void InitializeComponent()
InitializeComponent

Details

Inheritance

  • IComponentConnector
  • UserControl

Constructors

GradientStopItem [1/3]

public GradientStopItem()
Summary

Create a GradientStopItem, with default property values.

GradientStopItem [2/3]

public GradientStopItem(double offset, Color color)
Arguments
Type Name Description
double offset The offset from the gradient's start point where this stop appears.
Color color The color of this gradient stop.
Summary

Create a GradientStopItem, with preset property values.

GradientStopItem [3/3]

public GradientStopItem(GradientStop stop)
Arguments
Type Name Description
GradientStop stop The GradientStop to load property values from.
Summary

Create a GradientStopItem, generated from a GradientStop.

Methods

DoClick

public void DoClick()
Summary

Perform a click programattically. The checkbox responds the same way as if it was clicked by the user.

InitializeComponent

public virtual void InitializeComponent()
Summary

InitializeComponent

Properties

GradientStop

public GradientStop GradientStop { get; set; }
Summary

Get or set the gradient stop for this GradientStopItem.

Offset

public double Offset { get; set; }
Summary

Get or set the offset value for this gradient stop. The offset determines how far along the gradient this stop occurs.

Color

public Color Color { get; set; }
Summary

Get or set the color for this gradient stop.

IsSelected

public bool IsSelected { get; set; }
Summary

Get or set whether this gradient stop is selected for editing.

StopFill

public Brush StopFill { get; set; }
Summary

Get or set the brush used for the background of the gradient stop glyph.

StopSelectedFill

public Brush StopSelectedFill { get; set; }
Summary

Get or set the brush used for the background of the stop glyph while it is selected (i.e. the IsSelected property is true).

ClickOnPress

public bool ClickOnPress { get; set; }
Summary

Gets or sets whether the Click event should be raised when the checkbox is pressed, rather than when it is released.

Events

Click

public event RoutedEventHandler Click
Summary

Raised when the check box is clicked.

RightClick

public event RoutedEventHandler RightClick
Summary

Raised when the check box is right-clicked.

Generated with ModularDoc

Clone this wiki locally