19 using System.Collections.Generic;
23 using System.Windows.Resources;
46 HtmlStream = Application.GetResourceStream(
new Uri(packUri)).Stream;
57 "pack://application:,,,/{0};component/{1}",
58 assemblyName, filePath
69 : this(assemblyName, filePath)
78 public string Caption {
get;
set; }
79 public Stream HtmlStream {
get;
set; }
83 #region Private fields 85 readonly
string _packUri;
89 #region Implementation of ViewModelBase's abstract methods HtmlFileViewModel(string packUri)
Constructor that loads a HTML file from a qualified pack URI.
HtmlFileViewModel(string caption, string assemblyName, string filePath)
Loads a HTML file given an assembly name and file name and sets a caption.
HtmlFileViewModel(string assemblyName, string filePath)
Constructor that loads a HTML file given an assembly name and a path to a file that has its build act...
View model for a HTML file.
override object RevealModelObject()
Returns the model object that this view model wraps or null if there is no wrapped model object...