Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XAML Namespace for Prism 6

Tags:

prism

prism-6

For a couple of months I've been using Prism 6 with the following XAML namespace declaration:

xmlns:prism="http://www.codeplex.com/prism"

But I noticed this namespace URL (which redirects to GitHub) also exists:

xmlns:prism="http://prismlibrary.com/"

Please confirm which namespace is the correct one to use?

like image 900
rtev Avatar asked Feb 08 '23 05:02

rtev


2 Answers

As you might know, Prism has been taken over by the community and effort has been made to bring a new release with Prism 6. The old namespace

xmlns:prism="http://www.codeplex.com/prism"

might have been in the first pre-release packages of Prism 6 that you tried. But the team decided on switching to the new namespace.

xmlns:prism="http://prismlibrary.com/"

This is also mentioned in the release notes for v 6.0.0.

  • Fix XAML namespace issue (http://www.codeplex.com/prism)

  • Created new xmlns namespace http://prismlibrary.com/

So you should only be using the new namespace after upgrading to the lastest version. If you happen to see the use of an old namespace, don't hesitate to report an issue on the GitHub repository.

like image 85
Bart Avatar answered Mar 11 '23 01:03

Bart


Go with xmlns:prism="http://prismlibrary.com/". The codeplex.com namespace is a legacy namespace which, I suppose, could go away in the future. Code comments in the source on GitHub indicate it is legacy, too.

I use the prismlibrary.com namespace in all my Prism references. Works well.

like image 23
R. Richards Avatar answered Mar 11 '23 00:03

R. Richards