Frage

When creating a Portable Class Library in either Visual Studio 2010, or Visual Studio 11 Beta is INotifyPropertyChanged supported? If so which namespace can it be found in?

Or is it supported only in the Visual Studio 11 Beta?

You can download it for Visual Studio 2010 SP1 here: http://visualstudiogallery.msdn.microsoft.com/b0e0b5e9-e138-410b-ad10-00cb3caf4981/

I've seen people say you can use it online, but any MSDN documentation i've seen doesn't mention INotifyPropertyChanged, but does mention things such as INotifyCollectionChanged being supported.

The reason i'm wondering if there are two different implementations of this project type is that I know with .NET 4.5 beta you can target Metro style apps, which you can't do from VS2010 and .NET 4

War es hilfreich?

Lösung

Jeremy Likness wrote a nice series of three articles exploring the topic of making a portable library for MVVM XAML apps across the different platforms (Silverlight, WPF and Metro-style).

This series primarily focuses on the ICommand interface, but the problems are similar.

To answer your other question, the Metro-style version of this interface is defined in the Windows.UI.Xaml.Data namespace.

Andere Tipps

Currently only VS 11 Beta supports INotifyPropertyChanged (unless targeting only SL + Phone), however, we'll be soon releasing an update to our VS2010 tools which will include the same support for .NET 4.5, Phone 7.x, SL & Metro.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top