title: Value Converter doesn't work in CustomControl
body: <p>I tried to use the control from <a href="http://www.codeproject.com/Articles/741026/WPF-FlipView" rel="nofollow">this post</a> - FlipView Control.
  Here is what I have:</p>
  
  <pre><code>&lt;flipViewControl:FlipView ItemsSource="{Binding Images}" Name="ImagesFlipView"
                                              SelectedIndex="{Binding ElementName=ProductImagesBullets, Path=SelectedIndex, Mode=TwoWay}" Grid.Row="0"&gt;
      &lt;flipViewControl:FlipView.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;Image Source="{Binding FileLocation, Converter={StaticResource ImagePathConverter}}" Stretch="Fill"/&gt;
          &lt;/DataTemplate&gt;
      &lt;/flipViewControl:FlipView.ItemTemplate&gt;
  &lt;/flipViewControl:FlipView&gt;
  </code></pre>
  
  <p><code>ImagePathConverter</code> set ImageSource:</p>
  
  <pre><code>public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
  {
      var url = string.Format("{0}{1}", ConfigurationManager.AppSettings["SiteUri"], value);
  
      var bi = new BitmapImage();
      bi.BeginInit();
      bi.CreateOptions = BitmapCreateOptions.IgnoreColorProfile;
      bi.CacheOption = BitmapCacheOption.OnDemand;
      bi.UriSource = new Uri(url);
      bi.EndInit();
      return bi.Clone();
  }
  </code></pre>
  
  <p>But in this user control, in Debug, I never get inside this converter (When I tried it on a simple alone image, it works). </p>
  
  <p>What can be the solution for this problem? (Images aren't displayed, because converter doesn't apply correct ImageSource for Image)</p>
  
  <hr>
  
  <p>I have created a test project with this control and converter - it works... Strange, very strange</p>
  
  <hr>
  
  <p>UPD : Now it seems like </p>
  
  <pre><code>&lt;flipViewControl:FlipView.ItemTemplate&gt;
                                                  &lt;DataTemplate&gt;
                                                      &lt;TextBlock Text="{Binding FileLocation}"&gt;&lt;/TextBlock&gt;
                                                      &lt;!--&lt;Image Source="{Binding FileLocation, Converter={StaticResource ImagePathConverter}}" Stretch="Fill"/&gt;--&gt;
                                                  &lt;/DataTemplate&gt;
                                              &lt;/flipViewControl:FlipView.ItemTemplate&gt;
  </code></pre>
  
  <p>doesn't work at all. I have tried to set another template, but it also doesn't work. 
  About binding - I have added the Converter just to see what is bound like <a href="http://www.wpftutorial.net/DebugDataBinding.html" rel="nofollow">here</a> and Binding is correct.</p>
  
  <hr>
  
  <p>UPD : Problem resolved when I understand that Custom Control should be as separate <code>dll</code>. So I just move my code into separate project and add reference to Main project... </p>