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…
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 =…
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…
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…
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…
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…
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…
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…
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
{
…
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;
…
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…
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…
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
{
…
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…