开发者

WPF Adding to MenuItem

开发者 https://www.devze.com 2023-03-18 17:10 出处:网络
If I have a list of MenuItems based on a List of strings using DataT开发者_高级运维emplate and ItemsSource. How do I add another MenuItem to that programatically. The added MenuItem is not a string bu

If I have a list of MenuItems based on a List of strings using DataT开发者_高级运维emplate and ItemsSource. How do I add another MenuItem to that programatically. The added MenuItem is not a string but a TextBox. Is this even possible?


instead of taking List of strings take Observablecollection of strings... so that you can further add new items which will recreate menu items .

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号