VincentH-Net / CSharpForMarkup

Concise, declarative C# UI markup for .NET browser / native UI frameworks
MIT License
748 stars 43 forks source link

Support custom controls #20

Closed VincentH-Net closed 2 years ago

VincentH-Net commented 2 years ago

What's about custom controls?

If the default controls generate by SourceGenerators, I suggest adding [Markup(typeof(MyControl))] that generates Markup's methods automatically. It seems to be possible to implement it.

Originally posted by @YegorStepanov in https://github.com/VincentH-Net/CSharpForMarkup/issues/19#issuecomment-1000878827

VincentH-Net commented 2 years ago

@YegorStepanov yes, I plan to eventually make the codegen available for custom controls and 3rd party control library authors, however that is quite a while off. First it needs to mature and be generalized by experience I will gain from creating NuGets for UI frameworks and possibly some well known 3rd party libraries, and feedback from users creating real apps with that