Blend 4 designer fails with: "Method not found: 'Void Microsoft.Practices.Prism....'" (Prism 4) RRS feed

  • Question

  • Hi everyone!

    I have 2 views that fail in Expression Blend 4 designer, even though they work in Visual Studio designer and while being executed. I am using the Prism 4 library, latest release (see Codeplex).

    In one of the views, in the constructor I register a command, like this:

    MatchChanged = new DelegateCommand<object>(this.OnMatchChanged);

    When i load this view in Blend 4, it says: "Method not found: 'Void Microsoft.Practices.Prism.Commands.CompositeCommand.RegisterCommand(System.Windows.Input.ICommand)'", and the view does not load.

    In the other, I use "RaisePropertyChanged" in the setters like this:

    public int SelectedPageIndex
       get { return selectedPageIndex; }
       set { selectedPageIndex = value;
              RaisePropertyChanged(() => SelectedPageIndex); }


    When i load this view in Blend 4, it says: "Method not found: 'Void Microsoft.Practices.Prism.ViewModel.NotificationObject.RaisePropertyChanged(System.Linq.Expression`1<System.Func`1<!!0>>)'", and the view does not load.

    Note that all views work, both in Visual Studio designer as well as when they are used as part of an executable, so there is no programming issue. It is exclusively Blend Designer that has a problem.

    Does anyone have a clue what's wrong?


    Wednesday, December 22, 2010 1:12 PM