开发者

WPF Navigation TreeView

I'm trying to create treeview menu where any click on an node would then change a canvas to load an xaml file based on that nodes name. Is t开发者_JAVA技巧his possible?


you could probably compile xaml in run time, but wouldn't you rather simply create compiled user controls, get a ctor for them using reflection and call it + add them as children when required? you can put them in separate assemblies (say in a different directory or use some naming convention), and poll each time (say on each tree view node mouse click, or employ some caching policy) to see if there are any new assemblies.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜