Krypton-Suite / Standard-Toolkit

An update to Component factory's krypton toolkit to support .NET Framework 4.6.2 - 4.8.1 to .NET 8 - 9
BSD 3-Clause "New" or "Revised" License
408 stars 62 forks source link

[Question]: How goes the winforms designer work? #260

Closed Tape-Worm closed 3 years ago

Tape-Worm commented 3 years ago

It's been some time since you've released for 3.1 and .NET 5 (and soon .NET 6).

I can easily use the controls with .NET 5, but designing is another matter entirely. For example, the ribbon, it just does not work through the .NET 5 winforms designer.

I know we can use the multi-target approach and that works somewhat, but it is a cumbersome hack at best. Also, I'm sure some others like me have zero desire to use .NET 4.x once we've upgraded our stuff to 5.

So how goes the work on getting the controls working in the designer? Are there any roadblocks that are keeping things from progressing?

Smurf-IV commented 3 years ago

Can you please have a go with the latest "2108.x Canary" build, as quite a lot has been done and investigated (And hopefully worked around) to get the designer to be "More happy" (About the best way I could put that) with the Krypton dll's.

I may have missed some controls, or even missed something completely due to having a dedicated Krypton Dev environment and not a Developer "Using Krypton" environment.

PWagner1 commented 3 years ago

Hi @Tape-Worm,

It's good to see you again!

The current workaround for this bug is to add the following to your csproj file:

<TargetFrameworks>net48;net5.0-windows</TargetFrameworks>

Hope this helps!

Tape-Worm commented 3 years ago

@Wagnerp I already knew about the workaround, I was just wondering how you guys were doing regarding getting the designers up and running.

@Smurf-IV I'll have a go at it some time tomorrow and let you know what I find.

PWagner1 commented 3 years ago

@Tape-Worm

The designers do work under .NET/Core, but the smart tags don't

Tape-Worm commented 3 years ago

@Smurf-IV So I had a go at trying out the ribbon (which for me, is the UI component I use the most from Krypton) and as @Wagnerp said, the smart tags don't work yet. But using the properties window I was able to add a tab, and a group. But where it fails is when I try to add the container for the buttons. I get this: image

@Wagnerp Just out of curiosity, why don't the smart tags work? Is there a technical limitation with the new .NET 5/Core designer functionality? And how different has the whole process been for adding designer code with the new designer? I'm dreading the day I need to jump in there for my own controls :)

Smurf-IV commented 3 years ago

I have been concentrating on the "Many" control in the toolkit, I have not got round to all the idiosyncrasies of the other kits yet. Is the above reported as a stand-alone bug ? And can it be linked to this. Then this can be used as an investigation into all the controls as devs go through.

Tape-Worm commented 3 years ago

@Smurf-IV I'll make a bug for it now. Wasn't sure if this was a bug, or something that hadn't been finished yet.

It's done, we can close this question now if you like.

Smurf-IV commented 3 years ago

Don;t be frightened to raise bugs / defects / Issues..

We can then check to see if it's real and it helps others who then search through the bug discussions to see how things progressed / fixed / went away ;-)

Tape-Worm commented 3 years ago

I honestly didn't know if this was a bug or unfinished functionality, so I didn't want to make an assumption. I'll post as a bug next time I find something that's indeterminant.

PWagner1 commented 3 years ago

@Tape-Worm Smart tags should now work, please check the latest builds Canary/Nightly