Exemplo n.º 1
0
 public Context(RenderHTML parent)
 {
     fontFamily = parent.TextFont;
     fontSize   = parent.TextSize;
     fontWeight = FontWeights.Normal;
     fontStyle  = FontStyles.Normal;
 }
Exemplo n.º 2
0
        private void SetBody()
        {
            RenderHTML renderer = new RenderHTML()
            {
                ParentScrollViewer = FindScrollViewer(Expander),
                BaseUri            = Model.URI,
            };
            FrameworkElement newContent = renderer.Render(Model.HtmlDescription);

            if (HasBody())
            {
                Panel.Children[1] = newContent;
            }
            else
            {
                Panel.Children.Add(newContent);
            }
        }