Click here to Skip to main content
15,909,091 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Can some one help plz,

I am trying to access a datagrid control in a class i create. this control is created in the XAML file. or how can i create the control at run time and put it inside a dockpanel.
kindly help. I am novice or brand new in this.

MAJ
Posted
Updated 11-Mar-14 1:00am
v2

Just Need to Follow Bellow Steps :-
1)Create a User Control.
 -- it's same like Window.
2) then Use That User Control as Data Type.
 -- it's same like Using your own controls.



look at this Link
 
Share this answer
 
v2
Comments
Member 10645876 11-Mar-14 8:05am    
i want to add it to an existing dockpanel created in the XAML as well.
MAJ
Ganesh Rana <> 11-Mar-14 8:08am    
you may do that from code behind.
Hi, what about this line of code:
C#
your_dockpanel.Children.Add(your_user_control);

Regards.
 
Share this answer
 

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