Comments (5)
Thanks for reporting and the detailed error report. I will investigate this ASAP. Do you have a repo that I can use? E.g. do you have this code in a public repo?
from catel.fody.
@Green7 I have written a unit test, but cannot reproduce. Can you double check the unit test is correct?
- https://github.com/Catel/Catel.Fody/blob/develop/src/Catel.Fody.TestAssembly.Shared/Bugs/GH0511.cs
- https://github.com/Catel/Catel.Fody/blob/develop/src/Catel.Fody.Tests.Shared/Repros/GH0511.cs
from catel.fody.
I added an extra check to check both the model and view model values:
from catel.fody.
the problem occurs if the variable is bound in UI.
I used the code:
<TextBox Text="{Binding SelectedThemeName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
In such a situation, OnSelectedThemeNameChanged is called with the old value of AppSettings.SelectedThemeName.
But surprisingly, if we use the dynamic object (as in the example), it will show the new, correct value.
from catel.fody.
Then it's probably the RaisePropertyChanged, I will try to reproduce this inside a unit test.
from catel.fody.
Related Issues (20)
- Support migration of RaisePropertyChanged(() => MyProperty) to RaisePropertyChanged(nameof(MyProperty)) HOT 3
- Generate error in case Argument expressions are used inside Catel HOT 2
- Weave calculated property notifications as if-else-if, not consecutive ifs HOT 6
- Allow visibility of generated properties to be customized HOT 1
- CatelFodyNullException with IEquatable implemented in another assembly HOT 6
- Catel.Fody doesn't weave the virtual properties correctly HOT 4
- Catel.Fody Fails to weave properties that are referenced across multiple projects HOT 2
- Object reference not set to an instance of an object HOT 9
- Part 2 of Object Reference not set to an instance of an object. HOT 2
- ObservableObject setters should check for equality before assigning HOT 1
- ViewModelBase derived classes with own SetValue method generating wrong code HOT 7
- Can you guide me how to use Crypto Obfuscator For .Net for obfuscated encryption? Before Costura.Fody works ? HOT 4
- StackOverflowException in OnPropertyChangedWeaver for indexer properties HOT 3
- Can anyone please help me how to use Costura.Fody to package LevelDB.Standard ? HOT 2
- Reference to ExposeAttribute not found. HOT 7
- Init only properties are not being weaved HOT 1
- OnPropertyChanged is called twice if we use the ViewModelToModel attribute HOT 10
- Attribute to suppress message HOT 1
- BadImageFormatException with Expose - weaver cannot resolve type of property HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from catel.fody.