WPF - ReSharper not recognizing inherited binding scope in XAML
<p>I'm having trouble with ReSharper in the XAML design view. Here is my source code:</p>

<p><strong>MainWindow.xaml</strong></p>

<pre><code>&lt;Window x:Class="MyNamespace.Views.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:system="clr-namespace:System;assembly=mscorlib"
        xmlns:vm="clr-namespace:MyNamespace.ViewModels"&gt;
    &lt;Window.DataContext&gt;
        &lt;vm:MainWindowViewModel/&gt;
    &lt;/Window.DataContext&gt;
    &lt;Grid&gt;
        &lt;StackPanel&gt;

            &lt;!-- User selects item from list --&gt;
            &lt;ListView ItemsSource="{Binding Items}" IsSynchronizedWithCurrentItem="True"&gt;
                &lt;ListView.Resources&gt;
                    &lt;DataTemplate DataType="{x:Type Item}"&gt;
                        &lt;TextBlock Text="{Binding Name}"&gt;
                    &lt;/DataTemplate&gt;
                &lt;/ListView.Resources&gt;
            &lt;/ListView&gt;

            &lt;!-- Currently selected list item details are shown here --&gt;
            &lt;ContentControl Content="{Binding Items}"&gt;
                &lt;ContentControl.ContentTemplate&gt;
                    &lt;DataTemplate&gt;
                        &lt;StackPanel&gt;
                            &lt;TextBlock Text="{Binding Description}"/&gt;
                        &lt;/StackPanel&gt;                       
                    &lt;/DataTemplate&gt;
                &lt;/ContentControl.ContentTemplate&gt;
            &lt;/ContentControl&gt;

        &lt;/StackPanel&gt;
    &lt;/Grid&gt;
&lt;/Window&gt;
</code></pre>

<p><strong>C# Classes</strong></p>

<pre><code>public class MainWindowViewModel
{
    public ObservableCollection&lt;Item&gt; Items { get; set; }

    public MainWindowViewModel()
    {
        Items = new ObservableCollection&lt;Item&gt;();
    }

    // ...
}

public class Item
{
    public string Name { get; set; }
    public string Description { get; set; }

    // ...
}
</code></pre>

<p>ReSharper is underlining <strong>Description</strong> in <code>&lt;TextBlock Text="{Binding Description}"/&gt;</code> in my <code>ContentControl</code> XAML element with the warning text of <code>Cannot resolve property 'Description' in data context of type 'MyNamespace.ViewModels.MainWindowViewModel'</code></p>

<p>I'm not sure how its getting confused because I specified my DataContext already in the <code>Window</code> element already so it definitely knows what class I'm working with. And my application runs without a problem and functions as expected so I'm certain it's a ReSharper issue.</p>