Nikita Tsukanov

Results 161 comments of Nikita Tsukanov

On Windows bitmaps has to be wrapped into HBITMAP object before going to the clipboard. So it requires special support from our clipboard implementation.

Note that `System.Drawing.Image` implements `ISerializable` that just saves the bitmap data to a memory stream: https://github.com/dotnet/runtime/blob/6362ec357baaac66ae461b6a73c49cec5ea37470/src/libraries/System.Drawing.Common/src/System/Drawing/Image.cs#L83

Mkay, it seems that for bitmaps we need to: 1) use CreateDIBSection from binary data to get a DIB-backed HBITMAP 2) create a compatible DC and compatible bitmap 3) use...

https://github.com/AvaloniaUI/AvaloniaVS/blob/f18343c6fbe8fed90b8d3743b8c21483818f2eeb/AvaloniaVS.Shared/Services/PreviewerProcess.cs#L444 - we should probably somehow expose the stack trace here as well. The problem is that exception happens when XAML is already parsed and compiled into MSIL. So there...

We might need to add debug information support for System.Reflection.Emit backend as well - https://learn.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/a263ywy6(v=vs.100)?redirectedfrom=MSDN

>Compatibility with legacy code must be considered as well. In this case, compatibility with WPF not previous Avalonia code. With 1.5M+ downloads, we should always be considering compatibility with previous...

@danwalmsley We've previously had a managed implementation. What happened to it?

Note that we'll still be keeping files like https://github.com/AvaloniaUI/Avalonia/blob/master/build/XUnit.props to avoid manually adding 10 dependencies to unit test projects.

There are also tricks like this one https://github.com/AvaloniaUI/Avalonia/blob/master/build/System.Drawing.Common.props to make System.Drawing to work properly

Note that Mono.Cecil has several huge API differences, especially when it comes to resolving .NET Types. In XamlX compiler we have some kind of [an abstraction for SRE and Mono.Cecil...