Advertisement
cadrell0

ExportPageAttribute

Jun 16th, 2011
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.96 KB | None | 0 0
  1.     /// <summary>
  2.     /// An ExportAttribute to be used to mark Pages that can be loaded by a DynamicContentLoader.
  3.     /// To use this attribute, your project must have a reference to Systen.ComponentModel.Composition
  4.     /// </summary>
  5.     [MetadataAttribute]
  6.     [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
  7.     public class ExportPageAttribute : ExportAttribute, IExportPageMetadata
  8.     {
  9.         /// <summary>
  10.         /// Create an ExportPageAttribute that only has a NavigateUri
  11.         /// </summary>
  12.         /// <param name="NavigateUri">The Uri used to navigate to the page.</param>
  13.         public ExportPageAttribute(string NavigateUri)
  14.             : base(typeof(Page))
  15.         {
  16.             this.NavigateUri = NavigateUri;
  17.         }
  18.  
  19.         /// <summary>
  20.         /// The Uri used to navigate to the page.
  21.         /// </summary>
  22.         public string NavigateUri { get; set; }
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement