/// <summary>
 /// Initializes a new instance of the Catalog class.
 /// </summary>
 /// <param name="resourceName">Name of the resource defining the Image of the media.</param>
 /// <param name="mediaName">Name of the media.</param>
 /// <param name="description">Description of the media.</param>
 /// <param name="date">Date Stump for the media.</param>
 public MediaItem(string resourceName, string mediaName, string description, DateTime date)
 {
     MediaName   = mediaName;
     Description = description;
     Image       = SharedResources.GetImage(resourceName);
     Date        = date;
 }
 /// <summary>
 /// Initializes a new instance of the ThemeCatologItem class.
 /// </summary>
 /// <param name="themeName">Name of the theme.</param>
 /// <param name="resourceName">
 /// Name of the resource defining the Thumbnail for the theme.
 /// </param>
 /// <param name="themeXamlPath">
 /// Path to the XAML file for this theme.
 /// </param>
 /// <param name="preferredBackground">
 /// Preferred Background for the theme.
 /// </param>
 internal ThemeCatalogItem(string themeName, string resourceName, string themeXamlPath, Brush preferredBackground)
 {
     ThemeName           = themeName;
     ThumbnailImage      = SharedResources.GetImage(resourceName);
     ThemeXamlPath       = themeXamlPath;
     PreferredBackground = preferredBackground;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the Photograph class.
 /// </summary>
 /// <param name="resourceName">
 /// Name of the resource defining the photograph.
 /// </param>
 internal Photograph(string resourceName)
 {
     Name  = resourceName;
     Image = SharedResources.GetImage(resourceName);
 }
 /// <summary>
 /// Initializes a new instance of the Catalog class.
 /// </summary>
 /// <param name="catalogName">Name of the catalog.</param>
 /// <param name="resourceName">
 /// Name of the resource representing the catalog thumbnail.
 /// </param>
 public Catalog(string catalogName, string resourceName)
 {
     CatalogName  = catalogName;
     CatalogImage = SharedResources.GetImage(resourceName);
     MediaItems   = new Collection <MediaItem>();
 }
 /// <summary>
 /// Initializes a new instance of the ThemeCatologItem class.
 /// </summary>
 /// <param name="themeName">Name of the theme.</param>
 /// <param name="resourceName">
 /// Name of the resource defining the Thumbnail for the theme.
 /// </param>
 /// <param name="constructor">
 /// Constructs a new Theme instance.
 /// </param>
 internal ThemeCatalogItem(string themeName, string resourceName, Func <Theme> constructor)
 {
     ThemeName        = themeName;
     ThumbnailImage   = SharedResources.GetImage(resourceName);
     ThemeConstructor = constructor;
 }