C# Class Open.Core.UI.Controls.StatusIcon

A red/green/orange/grey icon that can be used to indicate the health status of something.
Inheritance: System.Windows.Controls.UserControl
ファイルを表示 Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Properties

Property Type Description
ColorProperty System.Windows.DependencyProperty
FlashDurationProperty System.Windows.DependencyProperty
IsFlashingProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
IconUrl string
OnIsFlashingChanged void
Pulse void
UpdateBackgroundIconVisibility void
UpdateIconColor void

Public Methods

Method Description
StatusIcon ( ) : System
UpdateVisualState ( ) : void

Updates the visual state of the control.

Private Methods

Method Description
IconUrl ( StatusIconColor color ) : string
OnIsFlashingChanged ( ) : void
Pulse ( ) : void
UpdateBackgroundIconVisibility ( ) : void
UpdateIconColor ( ) : void

Method Details

StatusIcon() public method

public StatusIcon ( ) : System
return System

UpdateVisualState() public method

Updates the visual state of the control.
public UpdateVisualState ( ) : void
return void

Property Details

ColorProperty public_oe static_oe property

Gets or sets the color of the icon.
public static DependencyProperty,System.Windows ColorProperty
return System.Windows.DependencyProperty

FlashDurationProperty public_oe static_oe property

Gets or sets the duration (in seconds) that a single flash takes (pulse in and out).
public static DependencyProperty,System.Windows FlashDurationProperty
return System.Windows.DependencyProperty

IsFlashingProperty public_oe static_oe property

Gets or sets whether the icon is pulsing in and out.
public static DependencyProperty,System.Windows IsFlashingProperty
return System.Windows.DependencyProperty