What are the advantages/disadvantages of the different ways of binding content in a WPF UserControl to its properties?
问题 When starting to work with WPF UserControls, I stumbled upon several ways to bind content of a UserControl to one of its properties. Here's example C# code for my control: public sealed partial class MyUserControl : UserControl { public MyUserControl() { InitializeComponent(); } public static readonly DependencyProperty TheTextProperty = DependencyProperty.Register("TheText", typeof (string), typeof(MyUserControl), new FrameworkPropertyMetadata(0, FrameworkPropertyMetadataOptions.