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 this possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.