Quantcast
Viewing all articles
Browse latest Browse all 18858

Proper way to register same Dependency Properties in different controls.

Hi,

I just wanted to ask about the proper way of registering the same Dependency Properties in different controls. For example, imagine I have two different UserControls. Thay have different logic, are made for sth else, but generally are presenting the table of some data. So I want to have a DependencyProperty called InsideBorderColorProperty.

Now, how should I create this property? Copy/Paste Dependency Property registering code? Or should I create some base class? Or maybe you have any other solution to make the best use of Dependency Properties and to make it 'clean'?

Thanks a lot for your suggestions,

Best regards


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>