I need to dynamically get the list of Controls in the PresentationFramework assembly. For now, I can load the assembly with this piece of code:
var asmName = new AssemblyName("PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35");
var asm = Assembly.Load(asmName);
However, if in the future the framework is updated to higher version, the above code won't be able to pick up the new assembly. Please show me how to do it the right way. Many thanks.