fody-propertychanged

Fody, propertychanged and setting same value?

陌路散爱 提交于 2021-02-07 21:51:46
问题 Is there any way to configure fody to not check the value which is set to property - I have situations when value is the same and I want property to be set because I have additional logic in property setter that is not invoked. 回答1: This is clearly literally years after the original question but for future reference: This is indeed possible by modifying the options in the FodyWeavers.xml file. As is shown on the PropertyChanged.Fody wiki, one of the options is called CheckForEquality and can

Change brushes based on ViewModel property

£可爱£侵袭症+ 提交于 2019-12-11 10:26:01
问题 I have an application which has CarViewModel + view ( UserControl ). What I want to achieve is to change the style of brushes when the bound DataContext Car.Status changes. I found out how to change the brushes (in code behind of the view): private void LoadThemeResources(bool isPrepareMode) { if (isPrepareMode) { Uri themeUri = new Uri(@"/../Resources/MyBrushes.Light.xaml", UriKind.Relative); ResourceDictionary themeDictionary = Application.LoadComponent(themeUri) as ResourceDictionary; this

Fody is only supported on MSBuild 16 and above. Current version: 15

我是研究僧i 提交于 2019-12-03 14:25:57
问题 Visual Studio 2017 let me know there was an upgrade to Fody version 5 this morning. I accepted and did a NuGet package update of both Fody and PropertyChanged.Fody. Now, my project/solution will no longer build. The error is: "Fody is only supported on MSBuild 16 and above. Current version: 15." I tried uninstalling, shutting down VS, and reinstalling to no avail. 回答1: Please downgrade Fody to version 4.2.1. 回答2: Upgrade to Visual Studio 2019 https://visualstudio.microsoft.com/downloads/ 回答3:

Fody is only supported on MSBuild 16 and above. Current version: 15

我的未来我决定 提交于 2019-12-03 09:22:54
Visual Studio 2017 let me know there was an upgrade to Fody version 5 this morning. I accepted and did a NuGet package update of both Fody and PropertyChanged.Fody. Now, my project/solution will no longer build. The error is: "Fody is only supported on MSBuild 16 and above. Current version: 15." I tried uninstalling, shutting down VS, and reinstalling to no avail. Colonel Software Please downgrade Fody to version 4.2.1. Upgrade to Visual Studio 2019 https://visualstudio.microsoft.com/downloads/ For what it's worth - I ran into the same situation. A colleague added Fody with no other reason