示例#1
0
    public UserControl GetRender(ViewModel parent, Response r)
    {
      string filename = Path.GetTempFileName();
      r.SaveToFile(filename);

      Uri baseUri = r.BaseUri;
      HtmlViewModel vm = new HtmlViewModel(parent, filename);
      return new HtmlRender(vm, baseUri);
    }
示例#2
0
 public HtmlRender(HtmlViewModel vm, Uri baseUri)
 {
   InitializeComponent();
   DataContext = vm;
   Browser.LoadCompleted += Browser_LoadCompleted;
 }