windows phone 7 silverlight user control: data binding not working on custom property
问题 I have a rather simple user control (RatingControl) that has a dependency property defined as follows: public partial class RatingControl : UserControl { public RatingControl() { InitializeComponent(); } public static readonly DependencyProperty RatingValueProperty = DependencyProperty.Register("RatingValue", typeof(double), typeof(RatingControl), new PropertyMetadata(0.0)); public double RatingValue { set { double normalizeValue = 0.0; if (value > 10.0) { normalizeValue = 10.0; } else if