Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// <summary>
- /// An ExportAttribute to be used to mark Pages that can be loaded by a DynamicContentLoader.
- /// To use this attribute, your project must have a reference to Systen.ComponentModel.Composition
- /// </summary>
- [MetadataAttribute]
- [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
- public class ExportPageAttribute : ExportAttribute, IExportPageMetadata
- {
- /// <summary>
- /// Create an ExportPageAttribute that only has a NavigateUri
- /// </summary>
- /// <param name="NavigateUri">The Uri used to navigate to the page.</param>
- public ExportPageAttribute(string NavigateUri)
- : base(typeof(Page))
- {
- this.NavigateUri = NavigateUri;
- }
- /// <summary>
- /// The Uri used to navigate to the page.
- /// </summary>
- public string NavigateUri { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement