title: Convert VB DependencyProperty to C#
body: <p>I cannot figure out how to convert VB code of DependencyProperty  to C# code.</p>
  
  <p>I have read <a href="http://www.codeproject.com/Articles/140620/WPF-Tutorial-Dependency-Property" rel="nofollow">this</a> article... but anyway I need some help.</p>
  
  <pre><code>Public Shared VideoDirectoryProperty As DependencyProperty = _
  DependencyProperty.Register("VideoDirectory", GetType(String), GetType(Webcam), _
                                          New FrameworkPropertyMetadata(New PropertyChangedCallback(AddressOf DirectoryChange)))
  
  Private Shared Sub DirectoryChange(ByVal source As DependencyObject, ByVal e As DependencyPropertyChangedEventArgs)
  
  End Sub
  </code></pre>
  
  <p>and C# code I have got:</p>
  
  <pre><code>public DependencyProperty VideoDirectoryProperty = DependencyProperty.Register("VideoDirectory", typeof(string), typeof(WCam), 
               new FrameworkPropertyMetadata(new PropertyChangedCallback(DirectoryChange)));
  
  private void DirectoryChange(DependencyObject source, DependencyPropertyChangedEventArgs e )
  {
  
  }
  </code></pre>