title: Cannot find the static member 'ThumbnailSourceProperty' on the type 'CcsThumbnailDisplay'
body: <p>I am converting code from Silverlight to WPF, but I want the application to later work in both. So I am linking the Silverlight files to new WPF projects. I am getting this error when I convert it to a WPF project:</p>
  <blockquote>
  <p>Error 1   Cannot find the static member 'ThumbnailSourceProperty' on the type 'CcsThumbnailDisplay'.  C:\Users\sahluwai\Desktop\cusControls2\leitch\HarrisSilverlightToolkit\Toolkit\Source\Controls\DisplayControls\Streaming\Themes\CcsThumbnailDisplay.xaml    22  109 DisplayControls</p>
  </blockquote>
  <p>my xaml code is:</p>
  <pre><code>&lt;ResourceDictionary
  xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
  xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
  xmlns:local=&quot;clr-namespace:Harris.BCD.Toolkit.Silverlight.Controls&quot;&gt;
  
  &lt;Style TargetType=&quot;local:CcsThumbnailDisplay&quot;&gt;
      &lt;Setter Property=&quot;MinWidth&quot; Value=&quot;40&quot; /&gt;
      &lt;Setter Property=&quot;MinHeight&quot; Value=&quot;30&quot; /&gt;
      &lt;Setter Property=&quot;Background&quot; Value=&quot;#FF000000&quot;/&gt;
      &lt;Setter Property=&quot;Template&quot;&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType=&quot;local:CcsThumbnailDisplay&quot;&gt;
                  &lt;Grid HorizontalAlignment=&quot;Stretch&quot; VerticalAlignment=&quot;Stretch&quot;&gt;
                      &lt;Grid.RowDefinitions&gt;
                          &lt;RowDefinition Height=&quot;*&quot;/&gt;
                          &lt;RowDefinition Height=&quot;Auto&quot;/&gt;
                      &lt;/Grid.RowDefinitions&gt;
                      &lt;Border BorderBrush=&quot;#FF3C3C3C&quot; HorizontalAlignment=&quot;Stretch&quot; VerticalAlignment=&quot;Stretch&quot;
                              BorderThickness=&quot;8&quot; 
                              Padding=&quot;0&quot; 
                              Grid.Row=&quot;0&quot;&gt;
  
  
  ///////////////////////////////error line//////////////////////////////////////
  //i am getting the error in this line below:
  
                          &lt;Image HorizontalAlignment=&quot;Stretch&quot; Source=&quot;{TemplateBinding ThumbnailSource}&quot; Stretch=&quot;Uniform&quot;/&gt;
  
  
                      &lt;/Border&gt;
                      &lt;Border BorderBrush=&quot;#FF3C3C3C&quot; 
                              BorderThickness=&quot;1&quot; 
                              Padding=&quot;0&quot; 
                              Grid.Row=&quot;1&quot;&gt;
                          &lt;TextBlock Text=&quot;{TemplateBinding ChannelLabel}&quot; 
                                     Foreground=&quot;White&quot; 
                                     TextAlignment=&quot;Center&quot;/&gt;
                      &lt;/Border&gt;
                  &lt;/Grid&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>my code behind file is:</p>
  <pre><code>   namespace Harris.BCD.Toolkit.Silverlight.Controls
  {
  /// &lt;summary&gt;
  ///     Control: Video Image Display
  ///     
  ///     Displays an thumbnail capture of a video given a video source
  /// &lt;/summary&gt;
  public class CcsThumbnailDisplay : Control
  {
      #region Dependency Property Definitions
  
      /// &lt;summary&gt;
      ///     ThumbnailSource Dependency Property
      /// &lt;/summary&gt;
      public static readonly DependencyProperty ImageSourceProperty = DependencyProperty.Register(
          &quot;ThumbnailSource&quot;, typeof(ImageSource), typeof(CcsThumbnailDisplay),
          new PropertyMetadata(null, new PropertyChangedCallback(CcsThumbnailDisplay.OnThumbnailSourcePropertyChanged)));
  
      /// &lt;summary&gt;
      ///     ChannelLabel Dependency Property
      /// &lt;/summary&gt;
      public static readonly DependencyProperty ChannelLabelProperty = DependencyProperty.Register(
          &quot;ChannelLabel&quot;, typeof(String), typeof(CcsThumbnailDisplay),
          new PropertyMetadata(&quot;n/a&quot;, new PropertyChangedCallback(CcsThumbnailDisplay.OnChannelLabelPropertyChanged)));
  
      #endregion
      #region Data Properties
  
      /// &lt;summary&gt;
      ///     The thumbnail source for the video stream
      /// &lt;/summary&gt;
      public ImageSource ThumbnailSource
      {
          get { return (ImageSource)GetValue(CcsThumbnailDisplay.ImageSourceProperty); }
          set { SetValue(CcsThumbnailDisplay.ImageSourceProperty, value); }
      }
  
      /// &lt;summary&gt;
      ///     The channel label for the video stream
      /// &lt;/summary&gt;
      public String ChannelLabel
      {
          get { return (String)GetValue(CcsThumbnailDisplay.ChannelLabelProperty); }
          set { SetValue(CcsThumbnailDisplay.ChannelLabelProperty, value); }
      }
  
      #endregion
  }
  </code></pre>
  <p>}</p>