Renders a block of HTML content.
This control achieves HTML rendering by positioning a DIV element within the host browser at the position of the control.
Inheritance: System.Windows.Controls.UserControl, INotifyDisposed
        public void Initialize(HtmlBlock control)
        {
            control.Width = 300;
            control.Height = 300;

            control.BackgroundStyle = "orange";
            control.InnerHtml = GetShortHtml();
        }
 public void Dispose(HtmlBlock control)
 {
     control.Dispose();
 }
 public void Change__Offset(HtmlBlock control)
 {
     control.Offset = control.Offset.X == 0 ? new Point(50, 100) : default(Point);
 }
 public void Visibility__Visible(HtmlBlock control) { control.Visibility = Visibility.Visible; }
 public void Visibility__Collapsed(HtmlBlock control) { control.Visibility = Visibility.Collapsed; }
 public void Set_SourceUri(HtmlBlock control)
 {
     var html = new Uri("Test/HtmlContent.xml", UriKind.Relative);
     control.SourceUri = html;
 }
 public void Set_InnerHtml_Null(HtmlBlock control)
 {
     control.InnerHtml = null;
 }
 public void Set_InnerHTML_Long(HtmlBlock control)
 {
     var html = GetShortHtml() + RandomData.LoremIpsum(300);
     control.InnerHtml = html;
 }
 public void Change_InnerHtml(HtmlBlock control)
 {
     control.InnerHtml = GetShortHtml();
 }
 public void Toggle_Color(HtmlBlock control)
 {
     control.BackgroundStyle = control.BackgroundStyle == "red" ? "green" : "red";
 }
 public void Show_HtmlBlock(HtmlBlock control) { }