VincentH-Net / CSharpForMarkup

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

Missing helpers for some controls that have child(ren) #25

Closed VincentH-Net closed 2 years ago

VincentH-Net commented 2 years ago

@scottcg wrote: I need some additional helpers for those controls that have a child/children (Border, Menu, MenuItem)

This is an issue in WinUI and WPF codegen; it should generate helpers for types that implement settable property public UIElement Child

VincentH-Net commented 2 years ago

@scottcg Fixed in 0.6.1-dev.5 (8 types in WPF, 6 in WinUI)

VincentH-Net commented 2 years ago

Need to also support cases like Menu.

Could be ItemsControl subclasses, but look into this IAddChild doc; possibly we need to (also) check for ContentPropertyAttribute