I'm doing a UWP project, something similar to an order app, and now I'm kinda stuck on my Restock page.
In the app, I can restock my Stock
property, but when I change views, or between tabs, it resets. I tried to make everything static but then im diggin my hole even more with more issues, then I got a tip about INotifyPropertyChanged
, but with the examples I've seen I cant make it to work. I have my property in a Merchandise class, which I can get to my Restock xaml.cs file. But I guess I should make something in the class where the property is right?
public class Merchandise
{
public string Name { get; set; }
public string Supplier { get; set; }
public int Stock { get; set; }
public int MerchandiseId { get; set; }
}
Do I make Merchandise
implement the interface?