title: WIndows Phone 7 - ListViewItem Class Problem
body: <p>I have an app which was developed using WP7 developer CTP tools.Now I'm trying to run the same app but on WP7 beta tools.</p>
  <p>I have made all the changes needed for the above conversion as per <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=c8496c2a-54d9-4b11-9491-a1bfaf32f2e3&amp;displaylang=en#AffinityDownloads" rel="nofollow noreferrer">Microsoft Release Notes</a></p>
  <p>It has mentioned that <strong><code>ListView</code></strong> and <strong><code>ListViewItem</code></strong> classes are removed from <strong><code>Microsoft.Phone.Controls</code></strong> namespace.</p>
  <p>Following is the (modified) XML namespace as per the release notes.</p>
  <pre><code>xmlns:mpc=&quot;clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone&quot;
  </code></pre>
  <p>And I have followling line in which ListView is used.</p>
  <pre><code>&lt;mpc:ListViewItem Layout=&quot;TextAndDetailsWithIcon&quot; Text=&quot;{Binding Title.Text}&quot; Details=&quot;{Binding Title.Text}&quot; Style=&quot;{StaticResource PhoneListBoxItemLayout}&quot;/&gt;
  </code></pre>
  <p>So (obviously) its giving me error about the namespace issue.
  How do I fix it?</p>
  <hr />
  <p><strong>UPDATE1</strong> -</p>
  <p>I defined the layout of our list item directly in the DataTemplate as</p>
  <pre><code>&lt;TextBlock x:Name=&quot;ItemText&quot; Text=&quot;{Binding Title.Text}&quot; Margin=&quot;-2,-13,0,0&quot; Style=&quot;{StaticResource PhoneTextSubtleStyle}&quot;/&gt;
  </code></pre>
  <p>Now I'm getting an error about following line which is inside some auto generated file <strong>App.g.cs</strong></p>
  <pre><code>System.Windows.Application.LoadComponent(this, new System.Uri(&quot;/RssReader;component/App.xaml&quot;, System.UriKind.Relative));
  </code></pre>
  <p><em><strong>And the error is</strong></em></p>
  <pre><code>Invalid attribute value mpc:ListViewItem for property TargetType
  </code></pre>
  <p>What seems to be the problem now?</p>
  <p>(Note : I'm a beginner in Silverlight, So please bear)</p>