C# Class ZuneSocialTagger.GUI.Controls.PlaceImage

Class that makes it easy to display an image placeholder while a desired image loads.
Inheritance: System.Windows.Controls.Control
ファイルを表示 Open project: leetreveil/Zune-Social-Tagger

Public Properties

Property Type Description
PlaceholderSourceProperty System.Windows.DependencyProperty
SourceProperty System.Windows.DependencyProperty
StretchDirectionProperty System.Windows.DependencyProperty
StretchProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
ImageOpenedOrDownloadCompleted void
OnSourcePropertyChanged void
OnSourcePropertyChanged void
UpdateBackImageVisibility void

Public Methods

Method Description
OnApplyTemplate ( ) : void

Invoked when a new Template is applied.

PlaceImage ( ) : System

Initializes a new instance of the PlaceImage class.

Private Methods

Method Description
ImageOpenedOrDownloadCompleted ( object sender, EventArgs e ) : void

Handles the ImageOpened or DownloadCompleted event for the front image.

OnSourcePropertyChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when the Source dependency property changes.

OnSourcePropertyChanged ( ImageSource oldValue, ImageSource newValue ) : void

Called when the Source dependency property changes.

UpdateBackImageVisibility ( ) : void

Updates the Visibility of the back image according to whether the front image is loaded.

Method Details

OnApplyTemplate() public method

Invoked when a new Template is applied.
public OnApplyTemplate ( ) : void
return void

PlaceImage() public method

Initializes a new instance of the PlaceImage class.
public PlaceImage ( ) : System
return System

Property Details

PlaceholderSourceProperty public_oe static_oe property

Identifies the PlaceholderSource dependency property.
public static DependencyProperty,System.Windows PlaceholderSourceProperty
return System.Windows.DependencyProperty

SourceProperty public_oe static_oe property

Identifies the Source dependency property.
public static DependencyProperty,System.Windows SourceProperty
return System.Windows.DependencyProperty

StretchDirectionProperty public_oe static_oe property

Identifies the StretchDirection dependency property.
public static DependencyProperty,System.Windows StretchDirectionProperty
return System.Windows.DependencyProperty

StretchProperty public_oe static_oe property

Identifies the Stretch dependency property.
public static DependencyProperty,System.Windows StretchProperty
return System.Windows.DependencyProperty