I am implementing a class using fody ImplementPropertyChanged:
[ImplementPropertyChanged]
public class Translator
{
public string this[string Text]
{
get
{
...
}
}
public void Invalidate()
{
…
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.
I use Fody.PropertyChanged and Fody.Validar in my C# project to avoid writing boilerplate code. Let's presume I've got some class A:
[AddINotifyPropertyChanged]
[InjectValidation]
public class A { }
I have to use objects of type A in other parts of…
Can someone please advise me how I can get PropertyChanged.Fody to work with WPF databinding and EF 6.0 Database first?
I am not using MVVM.
I have an EF generated class called "Test" as…
Is there a way in Fody (MvvmCross app) to change this:
private double _subTotal;
public double SubTotal
{
get => _subTotal;
set
{
_subTotal = value;
Recalculate();
}
}
into something more elegant like:…
I have a problem with prism.forms and propertychanged.
I have settingsmodel,settingsviewmodel and settingspage that shown code below,
SettingsModel
public class SettingsModel: BindableBase
{
public string Url { get; set; }
public bool…
Create winform project targeting .net 4.5.1
Install-Package PropertyChanged.Fody
[ImplementPropertyChanged]
public class PersonFody
{
public string Name { get; set; }
}
PersonFody _fod = new PersonFody();
_fod. //Name is the only property and…
I'd like to run a method on property changed. I'd like my code to compile to something like this:
public string Property
{
get { return _property; }
set
{
_property= value;
IWantToCallFromHere();…
Today I read about new plugin on net which Fody.PropertyChanged which is very simple and easy to use.
Currently I am using MVVMCross where we have to call RaisePropertyChange(()=>Property) again and again. Is it safe to use Fody.PropertyChanged…
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…
I use the awesome weaver PropertyChanged.Fody for avoiding INotifyPropertyChanged boilerplate. I define dependent properties like this:
public string FirstName { get; set; }
public string LastName { get; set; }
public string FullName { get { return…
I have very simple project in WPF (PropertyChanged)- one view, one view model and one model. In this project I use package PropertyChanged.Fody. When I want to build this project after 10 second I get two error message:
Could not copy…
I am currently working on a project where we would like to use the Fody PropertyChanged IL weaver. It appears to work fantastically, but it is doing strange things to our FxCop analysis built into visual studio.
We have CA1062 and CA2214 enabled:…
I have these 3 classes
[AddINotifyPropertyChangedInterface]
public abstract class BaseViewModel
{
}
public abstract class XXXViewModelBase : BaseViewModel
{
public int SelectedAreaId { get; set; }
}
public class XXXSelectorViewModel :…
As the title says, I'm having trouble getting Fody, and the plugin Fody.PropertyChanged, to work in .NET Core 3.0, or any .NET Core version. Reading the issues on the respective GitHub pages doesn't answer my question, nor am I able to find any…