Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Why ObservableObject.PropertyChanging is not available since .NET 4.5? #77

Open
marbel82 opened this issue Sep 25, 2019 · 0 comments
Open

Comments

@marbel82
Copy link

marbel82 commented Sep 25, 2019

Projects since .NET4.5 are compiled with PORTABLE define, which causes PropertyChanging property to be skipped during compilation.

Project GalaSoft.MvvmLight.Platform (NET45).csproj only include project GalaSoft.MvvmLight %28PCL%29.csproj and doesn't change its define constants

<ProjectReference Include="..\GalaSoft.MvvmLight %28PCL%29\GalaSoft.MvvmLight %28PCL%29.csproj">
<Project>{6a912701-3ba1-4975-adbf-160caf66b640}</Project>
<Name>GalaSoft.MvvmLight %28PCL%29</Name>
</ProjectReference>

#if !PORTABLE && !SL4
/// <summary>
/// Occurs before a property value changes.
/// </summary>
public event PropertyChangingEventHandler PropertyChanging;
/// <summary>
/// Provides access to the PropertyChanging event handler to derived classes.
/// </summary>
protected PropertyChangingEventHandler PropertyChangingHandler
{
get
{
return PropertyChanging;
}
}
#endif

@marbel82 marbel82 changed the title Why ObservableObject.PropertyChanging is not available since NET 4.5? Why ObservableObject.PropertyChanging is not available since .NET 4.5? Sep 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant