HtmlControl content isn't assigned
See original GitHub issueI 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:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
I’ve moved the project into a separate repo.