Questions tagged [inotifypropertychanged]

INotifyPropertyChanged is an interface defined in Microsoft .NET used to notify listeners of data changes made to an object. These notifications enable data-bound UI controls to update their display automatically whenever the data properties they are bound to have changed.

Filter by
Sorted by
Tagged with
0 votes
1 answer
47 views

When Using Fody Property Changed and properties changed, Why it does not work?

I have a MVVM Prism Project with DBFirst and Entity Calsses. In View, I used My propertis of model (Class Entities) directly, and because I need to notify every other plcae in project that those ...
Khosro's user avatar
  • 7
0 votes
0 answers
8 views

Oracle Form Hanging Issue

Form got hanged after Forms_ddl('commit') code, and i am closing the whole application and opening again for the operation. How we can resolve this issue. This issue is happening occasionally. There ...
Dhilip kumar's user avatar
1 vote
1 answer
56 views

WPF ListView to update automatically using INotifyPropertyChanged

I have a ListView called ChosenListView in my UserControl. In my UserControl's constructor I set the DataContext to my ViewModel, which includes an ObservableCollection (called Elements) of elements ...
Idra's user avatar
  • 153
0 votes
2 answers
35 views

Generic bindable property not working properly

(before starting : I'm using .NET Framework 4.8) I've been fooling around in WPF and I was getting tired of constantly typing out properties that are used for bindings. I am now using code snippets to ...
Elias Verstappe's user avatar
0 votes
2 answers
65 views

SelectedItem from CollectionView doesn't refresh automatically when Selection is changed

I can't find out why my ToolbarItem Text isn't refreshing automatically when I change the SelectedItem on my CollectionView. I don't have much experience with xamarin, c# or coding in general but I ...
Felix's user avatar
  • 1
0 votes
1 answer
32 views

An Oxyplot graph doesn't refresh when a number in textbox changes (WPF)

I try to make a simple WPF application with MVVM pattern. It has a textBox, a textBlock, and an Oxyplot plotView. ** ViewModel class** public class ViewModel : INotifyPropertyChanged { private ...
ac3gbsha7's user avatar
0 votes
0 answers
33 views

Combobox items not updated after itemsource is updated in command

In my project, I have a Combobox and a Treeview. A dictionary Dictionary<string, ObservableCollection<ViewItem>> is the item source of the Combobox, and the DisplayMemberPath is the Key. ...
BabyHai's user avatar
  • 93
0 votes
0 answers
41 views

Changes made to ObservableCollection item through a view do not change Collection

I have recursive ObservableCollection representing directories and files. My idea - if user Checked file, parent directories should know about this. ViewModel: class that contains Root Collection ...
ShmelShamil's user avatar
1 vote
0 answers
81 views

Creating an interface that inherits from IPropertyChanged using explicit implementation

I was looking at Implementing INotifyPropertyChanged - does a better way exist?, (specifically the accepted answer) and this works great for any cases where you don't need or aren't using a base class....
WithoutAnAce's user avatar
0 votes
1 answer
47 views

How to make Syncfusion gauge "NeedlePointer" value update on Property Change Event?

I am reading data from a LoRa scanner utilizing SerialPort that gets among other things, the signal strength (RSSI) that ranges between -10 and -110. I want the gauge to update automatically every ...
BaselE's user avatar
  • 55
3 votes
1 answer
184 views

MVVM: delegating PropertyChanged notifications A -> B (readonly) -> C

In a .NET MAUI application I am using the Mvvm.CommunityToolkit with source generation capabiliities for INotifyPropertyChanged support in my ViewModels: https://learn.microsoft.com/en-us/dotnet/...
Hottemax's user avatar
  • 304
0 votes
0 answers
35 views

Bind Model to Winforms DataGridView, can not get old value when property changed

I have a Model (INotifyPropertyChanged) and bound to a DataGridView by BindingList, Once I edited a property of model instance, DataGridView's cell value updated before PropertyChanged raied. I have ...
CuteLeon's user avatar
0 votes
2 answers
88 views

Why SelectedItem in combobox is not set with OnPropertyChanged()?

I have a very strange behavior of combobox and SelectedItem. I want to have a message when selecting any other item in the combobox message show (That is not available yet), and setting [1] value in ...
Евгений Федоров's user avatar
0 votes
1 answer
50 views

PropertyChanged not raised when TextBox bound to a null property becomes null

I have this field and property private long? _defautID; public long? DefautID { get => _defautID; set { if (_defautID != value) { _defautID = value; ...
Rikube's user avatar
  • 61
0 votes
0 answers
64 views

Why INotifyPropertyChanged on Model is not reflected immediately in View?

I am having problems with property bindings in Winform in simple MVVM architecture. Both view model and model have implementation of INotifyPropertyChanged. I have two properties a and b bound to ...
postcreator's user avatar
0 votes
1 answer
76 views

C# INotifyPropertyChanged from observablecollection's item

To put simply I am trying to get my view to update when i modify the property of an item in an observable collection. The observable collection handle when I modify add/remove items in it, but not ...
Elgate's user avatar
  • 113
1 vote
2 answers
67 views

PropertyChangedEventArgs pooling

Has anyone researched if there is a benefit to doing a pool of PropertyChangedEventArgs objects? (For those who are not in the subject, I will explain - the PropertyChangedEventArgs object is part of ...
Stepagrus's user avatar
  • 1,209
0 votes
0 answers
33 views

Binding not updating (INotifyPropertyChanged) in ControlTemplate for Custom Control [duplicate]

I cannot seem to get a WPF ControlTemplate binding to update on a regular getter property using INotifyPropertyChanged. See the example below. I have the following C# WPF Class: public class ...
Jordy's user avatar
  • 121
0 votes
1 answer
60 views

How to update multiple Observable Collections in a WPF application?

I have written a WPF application that lets a user add and view a list of project files that he needs to build in batch mode, and then view the run time progress of each file as it is being built one-...
cnishd's user avatar
  • 3
0 votes
0 answers
43 views

How can I select an TextBox Text after the binded Property has changed?

so I have an Textbox on which I binded an Property that is named: Artikelnummer In the Property of Artikelnummer I have some code in the set part, but after my code I want to select the whole Text of ...
BeginnerWPF's user avatar
1 vote
0 answers
43 views

Is it possible to create an INotifyCollectionChanged implementation which does not allocate memory on Add?

I am developing a game which makes heavy use of collections which implement INotifyCollectionChanged. Items are added and removed from these lists every frame. The items themselves are pooled, so the ...
Victor Chelaru's user avatar
0 votes
0 answers
75 views

WPF Popup window closes but is not updating MainWindow UserControl datagrid

I have an application that has MainWindow with multiple UserControls. In one of the UserControls, there is a Datagrid. Inside that Datagrid, the user can select a row to make changes. When a row is ...
GoForIt's user avatar
  • 49
0 votes
0 answers
210 views

How to omit setter of PropertyChanged when the framework draws controls [MAUI.NET]

I have an application in MAUI.NET with MVVM architecture. In ViewModels I am setting PropertyChanged as most of examples through the web. In my application the user opens lots of views (that are of ...
jaydopartu's user avatar
0 votes
1 answer
77 views

An attempt was made to lazy-load navigation 'PerformedServices' on a detached entity of type 'OrderProxy'

I do not know why I am getting this error: InvalidOperationException: An error was generated for warning 'Microsoft.EntityFrameworkCore.Infrastructure.DetachedLazyLoadingWarning': An attempt was made ...
Mideks's user avatar
  • 63
0 votes
1 answer
215 views

Multi UI-threading and databinding issues

I'm having issues updating the UI threads. Application is running 1 UI thread for each form, meaning just using SyncronizationContext with the UI thread doesn't work. I'm doing this for looping update ...
Ifirit's user avatar
  • 41
0 votes
4 answers
837 views

Don't Understand How INotifyPropertyChanged function

INotifyPropertyChanged interface implementation (appropriate event) and helper method works fine in my code but I really don't understand how it works. My book does a poor job of explaining it to me ...
Torrvic's user avatar
  • 57
0 votes
1 answer
60 views

how to bind a property that can change in DataGrid

I have a table that stores data received from an external Internet resource. When changing a table cell, I need to send new data to the server. The question is how to correctly bind the property that ...
Alexey Savelyev's user avatar
0 votes
0 answers
58 views

C# CommunityToolkit - INotifyPropertyChanged with inheritance

Recently I found that it is possible to auto-generate code for INotifyPropertyChanged with the use of CommunityToolkit. But I stubbed upon a problem. I have a DTO class that is retrieved from the ...
Kebechet's user avatar
  • 1,625
0 votes
1 answer
125 views

PropertyChanged Fody accesses ObservableCollection

Is it possible to instruct Fody to generate PropertyChanged Events for the Properties Color1 and Color2 if the corresponding Items in the ObservableCollection _colors are changing? public class ...
AndiR's user avatar
  • 181
-2 votes
1 answer
50 views

Visual Studio WPF C# | OnPropertyChange | unclear behaviour

I'm working on a plugin that I didn't start developing and there is a behaviour that I don't understand. Code: MAINWINDOW.xaml TABLE1 and TABLE2 structures <DataGrid ...> ... <...
cafu23's user avatar
  • 17
0 votes
0 answers
28 views

Value of binded property don´t change when enter text in textbox (INotifyPropertyChanged implemented, MVVM)

I am trying to realize Wordle(Game) in WPF as a project to practice. In the ViewModel I have a Property(e.g. FirstWord) for the first, second, third, fourth and fifth word, all of which have ...
Erik's user avatar
  • 1
0 votes
1 answer
99 views

Passing data/events between vaadin layout classes

In my Vaadin application I have two layouts in the main view. Each layout defined in a separate class. The top one contains some instructions and a bunch of buttons. The bottom is a complex list with ...
Gary Greenberg's user avatar
0 votes
1 answer
40 views

PropertyChanged subroutine is not called/triggered

Windows Forms Application in VS2012 Target .NET Framework: 4.5 Created a project containing a Form (Form1) and a class (Class1). Form has a button (Button1) object. Code below: Class1: Imports System....
Sarangan R's user avatar
0 votes
1 answer
375 views

How to call onChange function when URL on webView changes MAUI

I have a binding set on the webView source from my ViewModel. In the beginning, the source is being redirected correctly, but when URL of the webView changes I want to call a function OnAuthUrlChanged,...
Timotej Arnuš's user avatar
0 votes
1 answer
538 views

set ObservableProperty in BaseViewModel

I am trying to set ObservableProperty with binding in my ViewModel that inherits from BaseViewModel class in my MAUI app. But when I ran the app. I get this error: cannot convert from system....
Timotej Arnuš's user avatar
0 votes
2 answers
1k views

Is it possible to use "PropertyChanged" on a bool in .NET MAUI?

I have been trying to detect it when these variables change, but I don't know how to do that since bools aren't supported by the "PropertyChanged" function. I also tried using the ...
Mielesgames's user avatar
1 vote
1 answer
395 views

WPF/C# : Updating LiveCharts RowSeries with OnPropretyChanged

I have a horizontal bar chart in a ViewModel displaying the top 10 clients in the past 6 or 12 months (default 6). I want the data to switch to 6 or 12 months when the user clicks on the buttons. I ...
SoloWharf's user avatar
1 vote
1 answer
1k views

When object property in ObservableCollection changed, notify another property, CommunityToolkit Mvvm

Class definition: public partial class Pozycje: ObservableObject { [ObservableProperty] private bool _ok; [ObservableProperty] private string _name; [ObservableProperty] private decimal _qty; ...
MarcinNotos's user avatar
0 votes
1 answer
52 views

ListView no longer changing values when adding INotifyPropertyChanged to class

I have dictionary values bound to a listview that change dynamically based on which dict key is selected in a combobox. Works great. However, I'm trying to add the INotifyPropertyChanged interface to ...
KarkMump's user avatar
-1 votes
1 answer
46 views

Sharing ViewModel's properties between more views

i'm new to WPF and MVVM but i trying to do a simple project. My application basically consist in one window with two TabItems and a common progress bar; inside each TabItem there are some control for ...
Riccardo Palma's user avatar
1 vote
2 answers
385 views

Update Property When Another Property Changed

I want to update Name property of a class whenever matching ID changes, I get the matching Name from web reference. For example: class Request { private int xID; public int XID { ...
M. Almog's user avatar
1 vote
1 answer
160 views

CurrentValues.SetValues doest not raise INotifyPropertyChanged

I am implementing the INotifyPropertyChanged Interface on my EF POCOs. I have a function to reset changes: var entry = db.Entry(c); entry.CurrentValues.SetValues(entry.OriginalValues); But it doesn't ...
Aries's user avatar
  • 464
0 votes
1 answer
69 views

Content is not showing

Unfortunately, I'm unable to understand where there is realization mistake. The main application window should show a content from view model (HomeView.xaml) Could you advice, what I has done ...
Dima's user avatar
  • 1
1 vote
1 answer
188 views

How to update FlexLayout when ObservableCollection content changes

I'm new to Xamarin and struggle with displaying some fetched objects (Products in my case) as buttons into a FlexLayout. Getting the result from the API and parsing it to objects (Products) is working ...
CodeNinja's user avatar
  • 839
2 votes
2 answers
1k views

Frame IsVisible Binding has no effect

I am having an issue with my Binding on isVisible in latest .Net Maui Preview 17.3.0 Preview 2.0. Probably unrelated to the version. I am not using MVVM..here is my code: <Frame Background="...
Mufacka's user avatar
  • 227
1 vote
0 answers
82 views

How to handle PropertyChanged events in related classes?

I'm migrating a legacy application from C to C# (.NET Core 5), and implementing more modern software development practices. The C application had literally all of its data in structures in RAM, all of ...
James Cronen's user avatar
  • 5,715
0 votes
1 answer
93 views

PropertyChanged doesnt get executed

I am trying to implement MVP in windows forms, i have all controls binded to a corresponding property of a binding source, and i want, when the user change something and lost focus from the control, ...
azizmaiden's user avatar
0 votes
1 answer
570 views

WPF component content not updating after view model change

I have the following view model: public class ViewModel : ObservableObject { public string Watermark { get; set; } = "Loading..."; } where ObservableObject is from Microsoft.Toolkit....
Terry T's user avatar
  • 119
-1 votes
1 answer
119 views

WPF vb.Net DataBinding INotifyPropertyChanged

I made a little App for practicing Data Binding in WPF vb.NET Framework. It contains 3 Windows, One with a Slider, one with a TextBox and one with 3 Buttons which opens the other two Windows. ...
CarMaster4451's user avatar
1 vote
0 answers
221 views

WPF After ICommand INotifyPropertyChanged is called, but not updating UI [MVVM]

When the View is initialized, their standard value "VM", definied in the ViewModel, is updated trough the Model and updated in the View. However, when the ICommand NavigationCommand is ...
AfronSall's user avatar

1
2 3 4 5
31