locked
RE: Namespace error | clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" RRS feed

  • Question

  • Hello,

         Im currently trying to write a Silverlight app for Windows 7 Mobile using

    • Visual Studio 2010 Express for Windows Phone
    • Expression Blend 4 Beta
    • Expression Design 3 Trial

        Im tryin to move XAML generated (working code) from Visual Studio to Blend but getting a namespace error:

        Namespace: Declared in inside <Application> no error...

        xmlns:mpc="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"

        Code:

        <Style x:Key="PhoneListBoxItemLayout" TargetType="mpc:ListViewItem">

        Error:

        The name "ListViewItem" does not exist in the namespace "clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"

    Thank you

      Michael Kearney

    Friday, April 2, 2010 2:02 PM

Answers

  • Are you missing an assembly reference in your project in Blend?
    • Marked as answer by mikexkearney Friday, April 2, 2010 2:41 PM
    Friday, April 2, 2010 2:35 PM
    Moderator

All replies

  • Are you missing an assembly reference in your project in Blend?
    • Marked as answer by mikexkearney Friday, April 2, 2010 2:41 PM
    Friday, April 2, 2010 2:35 PM
    Moderator
  • That should have been my first action but I thought was already referenced seeming as there wasnt a red line under the namespace.

    Thanks

    Friday, April 2, 2010 2:44 PM