Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a WPF MainWindow that its running and also is wrote by a xaml user control in a new project and compile to dll.
I want add this xaml or dll into the MainWindow at runtime.
like adding a plug-in or tool idea on other softwares. What should I do?

Thanks in advance;)
Posted

 
Share this answer
 
v2
Comments
hzawary 19-Nov-11 9:53am    
Thanks RaviRanjankr, I have a user control in new project and I want add it into the my project in MainWindow at runtime and didn't want dynamic control;)
RaviRanjanKr 19-Nov-11 10:03am    
so will you please show your effort.
Whatever try :-
http://msdn.microsoft.com/en-us/library/bb772076.aspx
http://www.programmerfish.com/how-to-add-wpf-controls-in-simple-windows-forms/
hzawary 19-Nov-11 10:16am    
Thanks again,burak understand question me! actually I want this article in WPF codes, http://www.codeproject.com/KB/miscctrl/SelfContainedAssembly.aspx
Burak Ozdiken 19-Nov-11 10:49am    
look at this it will help you, http://msdn.microsoft.com/en-us/library/bb909887.aspx and,

http://msdn.microsoft.com/en-us/library/bb909849.aspx
RaviRanjanKr 19-Nov-11 11:28am    
Thanks For the link.
Look at this article, they are similar.

Self Contained Assembly[^]
 
Share this answer
 
Comments
hzawary 19-Nov-11 9:57am    
Thanks burak, is there WPF or xaml for this too?
RaviRanjanKr 19-Nov-11 16:07pm    
My 5+

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900