question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HtmlControl content isn't assigned

See original GitHub issue

I trying to use a HtmlControl but the XAML loader throws exception Portable.Xaml.XamlObjectWriterException: The value for 'Content' property is null Also I tried to assign Content\Text parameter, but the loader throws exception too. There is a MainWindows.xaml:

<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="AvaloniaApplication2">
  <HtmlControl>
    
  </HtmlControl>
</Window>

and Designer’s (Loader says it too) log:

Portable.Xaml.XamlObjectWriterException: The value  for 'Content' property is null
   at Portable.Xaml.XamlObjectWriterInternal.OnWriteGetObject()
   at Portable.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
   at Avalonia.Markup.Xaml.AvaloniaXamlLoaderPortableXaml.LoadFromReader(XamlReader reader, AvaloniaXamlContext context)
   at Avalonia.Markup.Xaml.AvaloniaXamlLoaderPortableXaml.Load(Stream stream, Object rootInstance, Uri uri)
   at Avalonia.DesignerSupport.DesignWindowLoader.LoadDesignerWindow(String xaml, String assemblyPath)
   at Avalonia.DesignerSupport.Remote.RemoteDesignerEntryPoint.<>c__DisplayClass17_0.<OnTransportMessage>b__0()

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
danwalmsleycommented, Apr 13, 2018

Html control hasn’t been updated in a long time, what do you want from html control? I have a possible alternative see… https://github.com/VitalElement/CefGlue.Core which allows you to embed chrome engine to view Web pages or html, it’s not so lightweight though, but does work

0reactions
jkoritzinskycommented, Jun 3, 2018

I’ve moved the project into a separate repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

html - Input value doesn't display. How is that possible?
So the answer was to assign that default value to the $scope.variable in the controller. Share.
Read more >
<input type="button"> - HTML: HyperText Markup Language
This makes it possible to enable and disable groups of elements all at once by enclosing them in a container such as a...
Read more >
Don't Use The Placeholder Attribute
In High Contrast Mode, placeholder content is assigned one of those high contrast colors, making it look like pre-filled information. As ...
Read more >
Using label elements to associate text labels with form ...
Check that there is a label element that identifies the purpose of the control before the input , textarea , or select element....
Read more >
What you need to know about ARIA and how to avoid ...
Incorrect ARIA can actually cause more accessibility issues. Learn what else everyone should know about ARIA plus tips for using ARIA.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found