TimberStalker
Blazor Wasm Static Content Error
When I load a static html file, I get this error in the console
Failed to load resource: net::ERR_CONTENT_DECODING_FAILED
The actual network request gives a Ok (200)
When i check the file in sources, i get the message Content unavailable. Resource was not cached
Im trying to load it in an iframe, but the same thing happens if I load the file in the browser.
When I request with postman, the request works perfectly fine.3 replies
WinUI: Creating a DataTemplate through Code doesent resolve all bindings.
I have a binding attachment that lets me add items to a MenuBarItem dynamically. It adds an ItemSource and ItemTemplate.
The Name and CommandParameter bindings both get set, but the command binding doesent run at all, presumably due to the ElementName. I even created a special print attachment property and if I had ElementName, it didnt print anything, but it did correctly print the other things.
This might be because i have to create the DataTemplates in the code behind that it doesent let things with relative bindings get set. This is what I do.
Is my problem the way I create the child contents, and if so what can I do to fix it.
1 replies