Share via


Image Constructor

Initializes a new instance of the Image class.

Overload List

public Image(string)

public Image(string, ImageRequirements)

Image.Image Constructor

Initializes a new instance of the Image class.

  public Image(
  string  
  source
);

Parameters

source

System.String.  A Uniform Resource Identifier (URI) that specifies the path (file://, res://, resx://, or http://) to the image.

Image.Image Constructor

Initializes a new instance of the Image class.

  public Image(
  string  
  source
  , 
  ImageRequirements  requirements
);

Parameters

source

System.String.  A Uniform Resource Identifier (URI) that specifies the path (file://, res://, resx://, or http://) to the image.

requirements

Microsoft.MediaCenter.UI.ImageRequirements.  The image requirements.

Remarks

Rather than leaving the image source empty, you can specify "null" as follows:

  <Image  Name="Image" Image="null"/>

Requirements

Reference: Microsoft.MediaCenter.UI

Namespace: Microsoft.MediaCenter.UI

Assembly: Microsoft.MediaCenter.UI.dll

Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later

See Also