Questions tagged [fody-propertychanged]

Fody add-in for injecting INotifyPropertyChanged code into properties

Fody add-in for injecting INotifyPropertyChanged code into properties.

79 questions
1
vote
1 answer

PropertyChanged is not fired from a class in a different assembly

I have a class library with a base class (BaseViewModel) that implements INotifyPropertyChanged, and a class that derive from it (TestExternal). I use Fody v4.2.1 and PropertyChanged.Fody v2.6.1. In the WPF app, I use that class as DataContext. When…
Vegard Innerdal
  • 349
  • 2
  • 10
1
vote
1 answer

Options to optin auto-implemented properties only?

I have class which are inherit base class which have it own "OnPropertyChanged" event called, eg: Xamarin BindableObject like below public string Name { get { return (string)GetValue(NameProperty); } set { SetValue(NameProperty, value); } } is…
codetale
  • 87
  • 6
1
vote
1 answer

Fody.PropertyChanged - Could not inject EventInvoker method

I have a ConfigurationViewModel which inherits from BaseViewModel. BaseViewModel is placed in a separate project and has an INotifyPropertyChanged interface implemented. This separate project does not have Fody.PropertyChanged installed. When I try…
raV720
  • 564
  • 3
  • 27
1
vote
3 answers

PropertyChanged isn't working as expected

I'm currently trying myself on creating a WPF project with MVVM using Fody Property changed.
Theo
  • 31
  • 5
1
vote
1 answer

Nested property changed notifications for a Realm object

I am using Realm and PropertyChanged Fody in my Xamarin Forms project. I have two models - Person and Friend which are like below. The person object has a reference to the friend object. I have binded the Age of the person and the friend to two…
1
vote
0 answers

PropertyChanged.Fody - Conflict between solutions using version 1 and 2

I have two distinct solution using PropertyChanged.Fody. There were both on version 1. Then I upgraded one solution to version 2. Since, the solution on version 1 shows error like that: Error Fody: Could not load 'ModuleWeaver' from…
François
  • 3,164
  • 25
  • 58
1
vote
1 answer

Using Xamarin.Forms with Prism and Fody

Are there any limitation on using Prism and Fody.PropertyChanged? I'm trying to use Fody to implement the OnPropertyChange for the variables at my ViewModel, but it isn't working. The property change isn't firing. I tried to remove the BindableBase…
1
vote
0 answers

Using Fody to convert a List into ObservableCollection

Is there any way to make https://github.com/Fody/PropertyChanged convert a List into ObservableCollection? The core contracts expose things as List and we already use Fody to inject PropertyChange.
AGCodes
  • 622
  • 1
  • 8
  • 22
1
vote
1 answer

Is there an option to use a different attribute for IsChanged using Fody PropertyChanged?

I am working on an Entity Framework / WPF project which has hundreds of tables in the database. Many of the tables include a field named IsChanged. I am using a model base class and PropertyChanged.Fody to handle the injection of…
N. Davis
  • 21
  • 5
1
vote
1 answer

Fody.PropertyChanged doesn't fire on inherited Property

I have a Control which inherits from NumericUpDown in WinForms. I want to handle changes to the DecimalPlaces-Property of NumericUpDown, therefore I have both tried declaring a void OnDecimalPlacesChanged() { MessageBox.Show("Moeeep"); } and…
nozzleman
  • 9,529
  • 4
  • 37
  • 58
1
vote
1 answer

Databound textbox updates do not persist to db

I have a winforms app with a group of text boxes for an entity, let's call the entity Product One of my textboxes is hidden because it holds a foreign key to another database object Business Unit. I populate the hidden textbox using a combobox that…
1
vote
1 answer

What is the best way to check if System.Collections.Generic.List is updated (C# 4.0)?

I need to identify if a list is updated (item added/removed). I need to use System.Collections.Generic.List, I cannot use ObservableCollection for this (and subscribe to it's CollectionChanged event). Here is what I have tried so far: I am using…
Nikhil Chavan
  • 1,685
  • 2
  • 20
  • 34
1
vote
1 answer

Using Fody.PropertyChanged, how to use with a property of BindingList?

I have the following classes using Fody.PropertyChanged weaving: [ImplementPropertyChanged] public class OtherClass : INotifyPropertyChanged { #pragma warning disable 67 public event PropertyChangedEventHandler PropertyChanged; #pragma…
Stécy
  • 11,951
  • 16
  • 64
  • 89
1
vote
2 answers

Property depending on property from another class

I've got a Windows Phone 8 application using Fody to inject INotifyPropertyChanged into properties. I have Class First with property A which is binded to textbox in View: [ImplementPropertyChanged] public class First { public int A { get; set;…
1
vote
1 answer

Fody-PropertyChanged raising on Dependent Property Change

I have a ProjectModel and a ProjectViewModel class; my Model handles direct manipulation of a project, while the view model is providing the "view friendly" properties and commands However, in my ViewModel I'm exposing the read-only project contract…
Meirion Hughes
  • 24,994
  • 12
  • 71
  • 122