Questions tagged [fody-propertychanged]

Fody add-in for injecting INotifyPropertyChanged code into properties

Fody add-in for injecting INotifyPropertyChanged code into properties.

79 questions
0
votes
1 answer

Automatic binding to some service properties in Catel with Fody

Assuming there is some service: public interface IDeviceManagerService { ISomeDeviceApi Api { get; } } It's purpose is to monitor external environment (USB, network, etc.), instantiate device API when the device detected and make property null…
ArXen42
  • 139
  • 1
  • 8
0
votes
0 answers

Assign properties in the viewmodel from base view model dynamically

I have been stuck with this for couple of days. Basically what I am trying to do is assign the values to the property in the ViewModel from the BaseViewModel. In my BaseViewModel I have the following code: var abc1 = this.GetType(); var method =…
Libin Joseph
  • 7,070
  • 5
  • 29
  • 52
0
votes
1 answer

Fody is throwing an error after installation in my MVVM WPF project

I am trying to build an app using WPF based on the MVVM project. While learning, I found it tedious to have to implement the getter/setter for every property to notify the view of a change. That is when I learn about Fody I tried to install the…
Jaylen
  • 39,043
  • 40
  • 128
  • 221
0
votes
2 answers

UWP app not updating view

A simple exercise: display the current time in a Textblock in an UWP app. I'm using MVVMlight and PropertyChanged.Fody. As a base for this example I'm using this Article 1 article and the MVVMlight / Fody implementation from here: Article 2 I've got…
Christoph
  • 323
  • 4
  • 16
0
votes
1 answer

Using MVVM, how to notify other properties and commands when a collection was modified

In à program written in C# and Xamarin Forms (but this question is more based on MVVM), I have an ObservableCollection of Items: ObserbableCollection Items { get; set; } When this collection changes (an item is added or removed…
hugo
  • 1,829
  • 1
  • 18
  • 47
0
votes
0 answers

How to exclude Fody's PropertyChanged.dll from UWP package?

We are using Fody.PropertyChanged on our Xamarin project which works great but when we try to upload the package to the store it rejects it because it says: The debug configuration test detected the following errors: The binary…
Johann Pérez
  • 367
  • 1
  • 16
0
votes
0 answers

WPF ContentControl not updating when navigating back to view

I have navigation set up with MainWindow.xaml that has a ContentControl. Content property is bound to an object property in MainViewModel. I have a UserListView.xaml user control which has UserListViewModel.cs and a UserDetailView.xaml user control…
0
votes
2 answers

Assembly Reference Issue in Xamarin.iOS Project

MTOUCH: error MT2002: Failed to resolve "System.Void PropertyChanged.ImplementPropertyChangedAttribute::.ctor()" reference from "MvvmCross.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null" Following errors are from Compiling…
0
votes
1 answer

How to not fire PropertyChanged when getting entity from database?

I have WPF application where I use some basic class. I also use Fody PropertyChanged and EF 6.1.3. I am trying to change property SaveNeeded whenever any of property is changed. So I write this class: public class Foo : INotifyPropertyChanged { …
Pavol
  • 552
  • 8
  • 19
0
votes
1 answer

Data bindings in xamarin xaml

I am trying to bind data in xamarin.forms using xaml. But the problem is that it doesn't work. My xaml code:
Alexey Vukolov
  • 223
  • 1
  • 3
  • 13
0
votes
0 answers

How to set logic in property using Fody

If I need to set some data in my property by call some method like : private List _country = GetCountries(); public List Country { get { return _country ; } set { _country = value; …
Ajay Sharma
  • 2,881
  • 5
  • 22
  • 32
0
votes
1 answer

TFS not weaving Fody assemblies

I am trying to use Fody.PropertyChanged on my project, so I have added [ImplementPropertyChanged] to my class. It all works fine in local, on my dev machine. However, when decompiling the TFS-generated binaries, I find that they are not weaved: they…
thomasb
  • 5,816
  • 10
  • 57
  • 92
0
votes
1 answer

Update View in "Realtime" with data from ObservableCollection in MVVMLight

I'm writing a sort algorithm visualizer in C#/WPF using MVVMLight and Fody. In my ViewModel I have an observable collection like this: public ObservableCollection NumbersCollection{ get; set; } Now in a command (method) I change the contents…
0
votes
0 answers

Fody.PropertyChanged and struct

I am displaying lot of custom data types (implemented as structs internally) on my UI. I was hoping to use Fody.PropertyChanged but it seems it works only with classes and not structs. A sample code: namespace FodyQuestion { …
NotAgain
  • 1,927
  • 3
  • 26
  • 42
0
votes
1 answer

Adding PropertyChanged.Fody to Entity Framework Model.tt

I am using Entity Framework 6 (Model First). So I have several classes that are generated for me by model.tt. Here is my Car class: //------------------------------------------------------------------------------ // // This code…
pjdupreez
  • 659
  • 1
  • 8
  • 19