Embeds an HTML page.
Inheritance: System.Windows.Controls.UserControl, INotifyDisposed
 private void SetSource(HtmlDocument control, string url)
 {
     var uri = new Uri(url);
     if (model != null)
     {
         model.PageUri = uri;
         Output.Write("SourceUri (via Databound Model): " + url);
     }
     else
     {
         control.SourceUri = uri;
         Output.Write("SourceUri: " + url);
     }
 }
 public void Change__Offset(HtmlDocument control)
 {
     control.Offset = control.Offset.X == 0 ? new Point(50, 100) : default(Point);
 }
 public void Dispose(HtmlDocument control)
 {
     control.Dispose();
 }
 public void Visibility__Visible(HtmlDocument control) { control.Visibility = Visibility.Visible; }
 public void Setup_Databinding(HtmlDocument control)
 {
     model = new MyModel { PageUri = new Uri("http://google.com") };
     control.DataContext = model;
     control.SetBinding(HtmlDocument.SourceUriProperty, new Binding("PageUri"));
 }
 public void Visibility__Collapsed(HtmlDocument control) { control.Visibility = Visibility.Collapsed; }
 public void Set_SourceUri__Url_Null(HtmlDocument control)
 {
     control.SourceUri = null;
 }
 public void Set_SourceUri__Url_2(HtmlDocument control)
 {
     SetSource(control, "http://martinfowler.com/eaaDev/EventAggregator.html");
 }
 public void Set_SourceUri__Url_1(HtmlDocument control)
 {
     SetSource(control, "http://martinfowler.com/eaaDev/PresentationModel.html");
 }
 public void Initialize(HtmlDocument control)
 {
     control.Width = 600;
     control.Height = 550;
     Set_SourceUri__Url_1(control);
 }