mono / SkiaSharp

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
MIT License
4.51k stars 537 forks source link

Enable design mode for WPF designer #2110

Open virzak opened 2 years ago

virzak commented 2 years ago

Is your feature request related to a problem? Please describe.

Need rendering in Design mode

Describe the solution you'd like

Removing these two lines should do the trick

https://github.com/mono/SkiaSharp/blob/bcb6526eeeda9f9e4442f6a716d1ad8c8e15e4cd/source/SkiaSharp.Views/SkiaSharp.Views.WPF/SKElement.cs#L49-L50

Additional context

There could be an issue with design time when referencing a project, but should work great with nuget package.

https://github.com/dotnet/sdk/issues/8645

mgood7123 commented 2 years ago

have you tested this and verified that it actually works?

assuming you dont mean Design Mode for Skia itself (eg a UI Designer for Skia)

virzak commented 2 years ago

@mgood7123 Yes, I have tested it. Works in Visual Studio that consumes a nuget package.

mgood7123 commented 2 years ago

Nice

On Sat, 20 Aug 2022, 9:13 pm Victor Irzak, @.***> wrote:

@mgood7123 https://github.com/mgood7123 Yes, I have tested it. Works in Visual Studio that consumes a nuget package.

— Reply to this email directly, view it on GitHub https://github.com/mono/SkiaSharp/issues/2110#issuecomment-1221295557, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLITH6PO6XWIDZTSOCZ5ALV2C4WLANCNFSM5YWFSDNQ . You are receiving this because you were mentioned.Message ID: @.***>