title: WPF Binding Property not found
body: <p>I have problem with binding.</p>
  
  <p>This line: <code>Center="{Binding Position, RelativeSource={RelativeSource TemplatedParent}}"</code>
  causes a problem at runtime. It gives me this error:</p>
  
  <blockquote>
    <p>System.Windows.Data Error: 40 : BindingExpression path error:
    'Position' property not found on 'object' ''ContentPresenter'
    (Name='')'. BindingExpression:Path=Position;
    DataItem='ContentPresenter' (Name=''); target element is
    'EllipseGeometry' (HashCode=63639374); target property is 'Center'
    (type 'Point')</p>
  </blockquote>
  
  <p>This is my model:</p>
  
  <pre><code>public interface IRadarReader
  {
      BindingList&lt;RadarEntity&gt; Entities { get; }
      RadarEntity LocalPlayer { get; }
      bool Enabled { get; set; }
  }
  
  public class RadarEntity
  {
      public Point Position { get; set; }
      public PlayerTeam Team { get; set; }
      public EntityType Type { get; set; }
  }
  </code></pre>
  
  <p>I'm using System.Windows.Point for Position.</p>
  
  <pre><code>&lt;Window
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:l="clr-namespace:CSGOHack.GUI"
      x:Class="Game.GUI.MainWindow"
      Title="Game Tool" Height="334" Width="415"
  DataContext="{Binding RelativeSource={RelativeSource Self}}"&gt;
  
  &lt;Window.Resources&gt;
      &lt;l:RadarTeamToColorConverter x:Key="RadarTeamToColorConverter"/&gt;
  &lt;/Window.Resources&gt;
  
  &lt;Grid&gt;
      &lt;GroupBox Header="Radar"&gt;
          &lt;Viewbox&gt;
              &lt;ItemsControl ItemsSource="{Binding GameReader.RadarReader.Entities}" Background="#FFA4D16E"&gt;
                  &lt;ItemsControl.ItemsPanel&gt;
                      &lt;ItemsPanelTemplate&gt;
                          &lt;Canvas Width="100" Height="100"/&gt;
                      &lt;/ItemsPanelTemplate&gt;
                  &lt;/ItemsControl.ItemsPanel&gt;
                  &lt;ItemsControl.ItemTemplate&gt;
                      &lt;DataTemplate&gt;
                          &lt;Path Fill="{Binding Team, Converter={StaticResource RadarTeamToColorConverter}}"&gt;
                              &lt;Path.Data&gt;
                                  &lt;EllipseGeometry x:Name="PlayerEllipse"
                                      Center="{Binding Position, RelativeSource={RelativeSource TemplatedParent}}"
                                      RadiusX="5"
                                      RadiusY="5"/&gt;
                              &lt;/Path.Data&gt;
                          &lt;/Path&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/ItemsControl.ItemTemplate&gt;
              &lt;/ItemsControl&gt;
          &lt;/Viewbox&gt;
      &lt;/GroupBox&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>In Snoop 2.8.0 I can see that rest of things are binded correctly. Value converter is working. Only this "Position" property is highlighted red with errors in Snoop.</p>
  
  <p>Where is error?</p>