wpf user control generator
-
01 Mayıs 2012 Salı 12:52I have created a wpf project this project create a grid and many controls in this grid and allow the user to change controls properties now i wont to generate a user control dynamically this user control contains the grid and it's controls how can i do this
Tüm Yanıtlar
-
01 Mayıs 2012 Salı 13:40
Hi Amer,
You got to create a usercontrol dll and add it as a reference to your project.
Now, as you create your usercontrol you should ensure that those properties of the usercontrol which you'd like to manupulate from your application should be made as dependency properties.
Here's a link that may help you get started with.
http://www.codeproject.com/Articles/32825/How-to-Creating-a-WPF-User-Control-using-it-in-a-W
Please do let me know if this helps.
Regards,
Raj
-
01 Mayıs 2012 Salı 14:42maybe you didn't understand my question
I have generated user control files .cs and .xaml
and i want to create a dll from those files dynamically -
02 Mayıs 2012 Çarşamba 07:09
Hi Amer,
Dynamic dll creation ? You mean you'd like to create the class library dynamically ? I find this to be a very curious requirement. So may i ask you what is that you are trying to achieve ?
Raj
-
03 Mayıs 2012 Perşembe 06:51Moderatör
Hi Amer shammout,
You could use CodeDom, refer to this article in MSDN:
http://msdn.microsoft.com/en-us/library/650ax5cx.aspx
http://msdn.microsoft.com/en-us/library/y2k85ax6.aspx
Best regards,
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Yanıt Olarak İşaretleyen Sheldon _XiaoModerator 24 Mayıs 2012 Perşembe 06:01
-
24 Mayıs 2012 Perşembe 06:01Moderatör
Hi Amer Shammout,
I am marking your issue as "Answered", if you have new findings about your issue, please let me know.Best regards,
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.