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

I want to make a property for a User Control which should be the type of Control means which should accept and return the Control object but it is not working properly. please help me and give a proper solution that what to do??
Posted
Updated 25-Sep-12 20:16pm
v3
Comments
Kenneth Haugland 26-Sep-12 2:25am    
Could we see the XAML file?
Durgesh Swarnkar 26-Sep-12 2:56am    
Private control ctr;
public Control OutputControl
{
get { return ctr; }
set { ctr = value; }
}

this is the property which i have been made in simple windows application but same thing i want to make in WPF. please help me
vrehor 6-Oct-12 4:38am    
Hi,
I don't know if this is what you need, but did you try attach property?
It allows you to extend any wpf control with custom property.
You can then bind to it and so on.

http://msdn.microsoft.com/en-us/library/cc903943%28v=vs.95%29.aspx

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