C# Class RedisExplorer.Controls.GreyableImage

Class used to have an image that is able to be gray when the control is not enabled. Based on the version by Thomas LEBRUN (http://blogs.developpeur.org/tom)
Inheritance: Image
显示文件 Open project: leegould/RedisExplorer Class Usage Examples

Protected Methods

Method Description
ApplyGreyScaleImage ( GreyableImage greyScaleImg, System.Boolean isEnabled ) : void
GetImageWithSource ( DependencyObject source ) : GreyableImage
OnAutoGreyScaleImageIsEnabledPropertyChanged ( DependencyObject source, System.Windows.DependencyPropertyChangedEventArgs args ) : void

Called when [auto grey scale image is enabled property changed].

OnAutoGreyScaleImageSourcePropertyChanged ( DependencyObject source, System.Windows.DependencyPropertyChangedEventArgs args ) : void

Called when [auto grey scale image source property changed].

Private Methods

Method Description
GreyableImage ( ) : System

Initializes a new instance of the GreyableImage class.

Method Details

ApplyGreyScaleImage() protected static method

protected static ApplyGreyScaleImage ( GreyableImage greyScaleImg, System.Boolean isEnabled ) : void
greyScaleImg GreyableImage
isEnabled System.Boolean
return void

GetImageWithSource() protected static method

protected static GetImageWithSource ( DependencyObject source ) : GreyableImage
source System.Windows.DependencyObject
return GreyableImage

OnAutoGreyScaleImageIsEnabledPropertyChanged() protected static method

Called when [auto grey scale image is enabled property changed].
protected static OnAutoGreyScaleImageIsEnabledPropertyChanged ( DependencyObject source, System.Windows.DependencyPropertyChangedEventArgs args ) : void
source System.Windows.DependencyObject The source.
args System.Windows.DependencyPropertyChangedEventArgs The instance containing the event data.
return void

OnAutoGreyScaleImageSourcePropertyChanged() protected static method

Called when [auto grey scale image source property changed].
protected static OnAutoGreyScaleImageSourcePropertyChanged ( DependencyObject source, System.Windows.DependencyPropertyChangedEventArgs args ) : void
source System.Windows.DependencyObject The source.
args System.Windows.DependencyPropertyChangedEventArgs The instance containing the event data.
return void