Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Use the WinForms Designer Extensibility SDK for .NET #593

Open
Wagnerp opened this issue Jan 15, 2022 · 26 comments
Open
Assignees
Labels
area:designer All issues related to the designer. backlog Issues that are low priority. enhancement New feature or request known bug This is a known bug/issue. new feature A new feature has been requested. suggestion A suggestion has been requested.

Comments

@Wagnerp
Copy link
Contributor

Wagnerp commented Jan 15, 2022

Since MS is having issues supporting the WinForms designer in .NET, the WinForms Designer Extensibility SDK could be the solution for the current designer issues

@Wagnerp Wagnerp added enhancement New feature or request new feature A new feature has been requested. suggestion A suggestion has been requested. labels Jan 15, 2022
@Wagnerp Wagnerp pinned this issue Jan 15, 2022
@Smurf-IV
Copy link
Member

Nice find, All Designer issues should be linked to this.

@Wagnerp
Copy link
Contributor Author

Wagnerp commented Jan 15, 2022

Nice find, All Designer issues should be linked to this.

Well it's actually @sdreb3421 who notified me about this.

@Smurf-IV
Copy link
Member

Also, (Maybe - it's unclear) a reason some of the .Net5 is not working in a designer might be down to the loading in .Net5Core which has quite a few of the following "Color API's" missing:
dotnet/runtime#18476

@Smurf-IV
Copy link
Member

@Wagnerp This is going to be "Interesting"
Quote: The designers, as per the API specs, need to be implemented inside a NuGet package.

See the middle of the following page:
https://www.telerik.com/blogs/new-telerik-ui-for-winforms-designers-dotnet-core-dotnet-5

@Smurf-IV
Copy link
Member

And the following Caveats and "Tips'n'tricks" will need to be reformatted to reflect whatever "we" get working for Krypton:
https://docs.telerik.com/devtools/winforms/core/design-time

@Wagnerp
Copy link
Contributor Author

Wagnerp commented Jan 15, 2022

It's not ideal, but maybe private nightly packages could be used for testing?

@Smurf-IV
Copy link
Member

I spent all day yesterday trying to find documentation on how to use this, and came up empty.
Telerik and devexpress mention it in their latest "suites", but that's it. :-(

@Wagnerp
Copy link
Contributor Author

Wagnerp commented Jan 16, 2022

I spent all day yesterday trying to find documentation on how to use this, and came up empty. Telerik and devexpress mention it in their latest "suites", but that's it. :-(

I think it's because it is so new, there is limited documentation so far. The packages only first appeared back in November.

@Smurf-IV
Copy link
Member

Smurf-IV commented Jan 16, 2022

I have had an inspiration from the "Read between the lines of why the above is solving things"

If I

  • Remove "ALL" designers references from the toolkit e.g.
    image

  • Set toolkit project to be "Only" net5 windows

  • Create a new winform net 5 windows only main app

  • build.

  • I get the following showing up in the toolbox:
    image

I'll need to investigate further to see "What" the designers are attempting to do; but so far I've been able to drag (A random selection not all) controls onto the form !

@Wagnerp
Copy link
Contributor Author

Wagnerp commented Jan 16, 2022

Just out of interest, do the action lists show up when using .NET?

@Smurf-IV
Copy link
Member

Smurf-IV commented Jan 16, 2022

Just out of interest, do the action lists show up when using .NET?

Can you show a specific example, and do you mean in "Net 5" ?

The reason I ask is because of the following statement:
image
Even when AutoSize for a button is set to true it still has the Resize Handles !
i.e. there is no code that appears to be actually doing the statement in the designer of 4.8 !

@Wagnerp
Copy link
Contributor Author

Wagnerp commented Jan 16, 2022

Just out of interest, do the action lists show up when using .NET?

Can you show a specific example, and do you mean in "Net 5" ?

The reason I ask is because of the following statement: image Even when AutoSize for a button is set to true it still has the Resize Handles ! i.e. there is no code that appears to be actually doing the statement in the designer of 4.8 !

Here's what I mean

Animation

@Smurf-IV
Copy link
Member

Strange I never use those arrow thingies except for TableLayout
So if that is the only thing that is going to be missing (Because the properties will still show) then that can be "Lived" with for now ??
i.e. if not .48 or less than designer are disabled.
I can perform the above fix and relate it to the existing designer issues, and leave this one open until more documentation is available .
Thoughts ?

@Wagnerp
Copy link
Contributor Author

Wagnerp commented Jan 16, 2022

Strange I never use those arrow thingies except for TableLayout So if that is the only thing that is going to be missing (Because the properties will still show) then that can be "Lived" with for now ?? i.e. if not .48 or less than designer are disabled. I can perform the above fix and relate it to the existing designer issues, and leave this one open until more documentation is available . Thoughts ?

This might be a bug on MS part, maybe add this one specifically to the backlog until more documentation comes out?

@Smurf-IV
Copy link
Member

This might be a bug on MS part,

Yes, that is what the mentioned (titled) sdk is trying to solve.

maybe add this one specifically to the backlog until more documentation comes out?

Agreed.
This will lead to a set of related nuget packages, that will include just the designer for the project and will need to be set so that they do not become runtime references
Each TFM will need a dll to contain the designers for the suite element that is included.

@Smurf-IV Smurf-IV added the backlog Issues that are low priority. label Jan 16, 2022
@Wagnerp Wagnerp added the known bug This is a known bug/issue. label Jan 16, 2022
@Smurf-IV
Copy link
Member

Not sure when it appeared in the "Preview features" but this is in 2022.2.0 preview 3:
image

@Smurf-IV
Copy link
Member

Smurf-IV commented Jul 16, 2022

@Wagnerp Wagnerp added the area:designer All issues related to the designer. label Nov 22, 2022
@Smurf-IV Smurf-IV self-assigned this Dec 11, 2022
@Smurf-IV
Copy link
Member

Note this on the process of creating a designer to work in both:
https://www.codeproject.com/Articles/5341387/Writing-Custom-Control-in-NET-6

@Smurf-IV
Copy link
Member

As seen in the latest 17.8.p3:
image

This is still not a "Feature" I want to implement until it is "Stable" in VS
Because the workaround - Just Works !

@Wagnerp
Copy link
Contributor Author

Wagnerp commented Feb 13, 2024

Hi @Smurf-IV & @sneusse

There has been movement in this area in VS 17.9

@Wagnerp
Copy link
Contributor Author

Wagnerp commented Mar 2, 2024

@Smurf-IV I don't know if this is relevant?

@Smurf-IV
Copy link
Member

Smurf-IV commented Mar 3, 2024

@Smurf-IV I don't know if this is relevant?

No I do not think it is, because Krypton is "Any CPU" and not just This specific hurdle has emerged as a significant adoption blocker for users with Windows Forms .NET Framework projects that extensively leverage ActiveX/COM controls or other custom controls embedded in 32-bit assemblies

@Camel-RD
Copy link

Camel-RD commented Mar 3, 2024

Maybe something like this could be usefull:
https://github.com/Camel-RD/KlonsLIB.Design

@mbagattini
Copy link

I'm struggling designing Krypton controls after upgrading a solution from .NET Framework 4.8 to .NET 6. Some controls simply refuse to be designed in the usual way (on the Windows Forms designer surface), I have to fiddle with the properties box and it's very frustrating. I checked the "preview" thing in the Environment section under controls but no luck. Is there any workaround to be able to design controls (for example, work with Krypton Ribbon) as it was under .NET 4.8?

@Wagnerp
Copy link
Contributor Author

Wagnerp commented May 14, 2024

I'm struggling designing Krypton controls after upgrading a solution from .NET Framework 4.8 to .NET 6. Some controls simply refuse to be designed in the usual way (on the Windows Forms designer surface), I have to fiddle with the properties box and it's very frustrating. I checked the "preview" thing in the Environment section under controls but no luck. Is there any workaround to be able to design controls (for example, work with Krypton Ribbon) as it was under .NET 4.8?

Hi @mbagattini

There is a workaround, I've just updated the online documentation, but it won't be available until tomorrow when it'll be merged. The short of it is you need to set the TargetFrameworks to 'net48;netx.0-windows'. 'x' denotes the .NET version, 6, 8 or 9. Please do not use .NET 7, as support ends on 14th May 2024.

@Wagnerp
Copy link
Contributor Author

Wagnerp commented May 22, 2024

Putting this here (VS 17.10)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:designer All issues related to the designer. backlog Issues that are low priority. enhancement New feature or request known bug This is a known bug/issue. new feature A new feature has been requested. suggestion A suggestion has been requested.
Projects
None yet
Development

No branches or pull requests

4 participants