title: Issue binding Silverlight Custom Control dependency property to Model property
body: <p>I have a data navigation user control in Silverlight which opens a child window where the user can enter search criteria and when they press 'Apply' it's suppose to update the bound property in the ViewModel (MVVM pattern.)</p>
  
  <p>The links are: SearchDialog &lt;--> DataNavigator &lt;--> MyView &lt;--> MyViewModel</p>
  
  <p>The dependency property in SearchDialog seems to work, when I set its value, it shows up in DataNavigator; however when the dependency property changes, no notification seems to be sent from DataNavigator to MyView/MyViewModel.</p>
  
  <p>SearchDialog derives from ChildWindow:</p>
  
  <pre><code>public string Search
  {
   get { return (string)GetValue(SearchProperty); }
   set { SetValue(SearchProperty, value); }
  }
  
  public static readonly DependencyProperty SearchProperty =
   DependencyProperty.Register("Search", typeof(string), typeof(SearchDialog),
   new PropertyMetadata(null));
  </code></pre>
  
  <p>DataNavigator derives from UserControl:</p>
  
  <pre><code>public Binding Search { get; set; }
  
  private void DataNavigator_Loaded(object sender, Windows.RoutedEventArgs e)
  {
   if (Search != null)
    this._searchDialog.SetBinding(SearchDialog.SearchProperty, Search);
  }
  </code></pre>
  
  <p>MyView derives from SilverlightFX.UserInterface.Navigation.Page:</p>
  
  <pre><code>&lt;DataNavigator MovePreviousAction="$model.MovePrevious()"
                 CurrentIndex="{Binding CurrentIndex, Mode=TwoWay}"
                 MoveNextAction="$model.MoveNext()"
                 SaveAction="$model.SaveChanges()"
                 IsLoading="{Binding IsLoading, Converter={StaticResource VisibilityConverter}}"
                 Search="{Binding SearchString, Mode=TwoWay}"/&gt;
  </code></pre>
  
  <p>MyViewModel derives from ViewModel:</p>
  
  <pre><code>public string SearchString
      {
       get { return this._search; }
  
    set
    {
     if(value != this._search)
     {
      this._search = value;
      this.RaisePropertyChanged("SearchString");
     }
    }
   }
  </code></pre>
  
  <p>I've been trying for hours to find the problem but haven't had any success; anyone see the issue? Thanks in advance,</p>