Questions tagged [propertychanged]
221 questions
-1
votes
1 answer
Wpf PropertyChanged two time to two variable in one method with button send
I cant update variable. I have a User control class with custom textbox.
WPF UC code.
I was trying With Mode=TwoWay and…

TryTrystMy
- 73
- 1
- 1
- 10
-1
votes
3 answers
Implement Onpropertychanged with ObservableCollection (C#, WPF)
I have ComboBox with "ProjectList":
MainWindow.xaml
Elements are adding inside below method and working…

4est
- 3,010
- 6
- 41
- 63
-1
votes
1 answer
How to update binding based on value being dirty?
I've a DataGrid with 5 columns. First 3 columns are part of parent object and last 2 columns are part of child object.
I've a userName column as 6th column.
When I update anything from first 3 columns of parent object, userName reflects correctly.…

Mihika
- 1
- 3
-1
votes
2 answers
Can I throw exception with java bean
I want to notify to class1 with exception that can or cannot change a variable. I have tried to put in propertyChange to throw a exception but i can't with this method. how can I notify class1??
class1 ->
public void setProperty(int var) {
…

Liru
- 13
- 2
-1
votes
2 answers
Change property in PropertyChanged method not updating view
Under certain conditions if the user selects an item in a combobox, it automatically must be changed to another item
ViewModel
public class VM : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private void…

The One
- 4,560
- 5
- 36
- 52
-1
votes
1 answer
OnPropertyChanged wont change when used wth observable collection and single property
Loads the dataGrid and populates the Datagrid a row of 1'
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
update();
//this.DataContext = this;
}
CricketEvent events…

Mark Evans
- 45
- 1
- 1
- 8
-1
votes
1 answer
How does the PropertyChanged Interface (event-system) work?
I have the following problem:
I have a class called Fileand I want this class to inform another class when something special happened, but File should not have a reference to the class which should be informed. I think this is the same problem which…

Feve123
- 122
- 11
-1
votes
1 answer
DataGrid row selection won't trigger property changed
i have a datagrid, when i select a row the property that is bound to selected item is being called correctly but if if i click on the same row again(unselect it) property changed is not called.
any idea why?
the ItemsSource object implement…

user1531186
- 323
- 1
- 7
- 20
-2
votes
1 answer
WPF: how to bind my collection from different Page
So i have this Collection inside my ViewModel:
public class ViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private ObservableCollection _interfaces;
…

user979033
- 5,430
- 7
- 32
- 50
-2
votes
1 answer
C# - Delegate Specialization
Consider the following built-in delegate:
public delegate void PropertyChangedEventHandler(object sender,
PropertyChangedEventArgs e);
Is it possible that I extend/overload/override the delegate to this signature:
public delegate void…

anragab
- 11
- 4
-3
votes
1 answer
Force to write all user settings in a WPF application
I have user setting objects with observablecollections in it. My problem is that saving the settings are only saved one time. I guess that the setting object gets no change event by the collections. I tried to fix this by a collection Changed event…

user2582903
- 17
- 3