Hello,
I have 2 User Control.
I put this code on UserControl1:
//...
public static readonly DependencyProperty ValueProperty =
DependencyProperty.Register("Value", typeof(object),
typeof(UserControl1), new PropertyMetadata(null));
//...I run program, and I use it without any problem.
On UserControl2 I put the same code:
//...
public static readonly DependencyProperty ValueProperty =
DependencyProperty.Register("Value", typeof(object),
typeof(UserControl2), new PropertyMetadata(null));
//...When I run program, VS return this erro:
'Value' property was already registered by 'UserControl1'
How can I solve these problem? (without rename 'Value', because I need the 2 UserControls with this property.
Regards, ADAE.