Questions tagged [propertychanged]

221 questions
2
votes
3 answers

Xamarin TimePicker propertychanged event fired on load

I am developing a Xamarin app for android using Xamarin forms to create my layout. I have come across an issue with my time picker firing on load of my view cell. What I am doing is creating a list view and then setting the item template to my…
2
votes
1 answer

How to use INotifyPropertyChanged correctly in WPF/XAML

I have a custom object that I am trying to bind to a control. On that custom object I have implemented the INotifyPropertyChanged interface. I have successfully bound to my object and a property on that object. What I can't figure out is how to go…
Ristogod
  • 905
  • 4
  • 14
  • 29
2
votes
3 answers

WPF excessive PropertyChanged events

Typically in the property setter of an object we may want to raise a PropertyChanged event such as, public event PropertyChangedEventHandler PropertyChanged; protected void Notify(string property) { if (PropertyChanged != null) …
user418689
  • 23
  • 3
2
votes
2 answers

RaisePropertyChanged of the whole object if inner property changed

i am looking for a solution to fire PropertyChanged of the whole property, if one of the inner properties changes. so here is the model: public class MainStatus : ObservableObject { private bool _safety; public bool Safety { get…
el-nino
  • 399
  • 9
  • 26
2
votes
1 answer

BindingProxy: binding to the indexed property

I have a BindingProxy to Bind the Visibility-Property of DataGridColumns of a DataGrid to a Value in a Dictionary ("ColumnsVisibility"). I Also have a Context-Menu, that should make it possible to hide/show the columns of the Grid.
Hunv
  • 385
  • 7
  • 17
2
votes
1 answer

Best practice to add dynamic property with PropertyChangedCallback support?

I have a collection of objects with three property(x1,x2,x3) and PropertyChangedCallback for that properties. This collection bind to a Wpf DataGrid. Then i want to add a dynamic property(user defined not me) to this object with a formula like…
Reza ArabQaeni
  • 4,848
  • 27
  • 46
2
votes
0 answers

Microsoft UI Automation: ValuePattern not supported for RICHEDIT60W

I'm developing an UI Automation application for Microsoft Word and I need to catch, for a RichEdit text box, the "AutoAddAutomationPropertyChanged" Event via a specific handler through method "AddAutomationPropertyChangedEventHandler". I have my…
Andrea
  • 21
  • 3
2
votes
2 answers

Detect PropertyChanged in custom TextBox

I'm have implemented a custom TextBox: public class MyTextBox : TextBox { // ... } that I'm using from XAML: and it's bound to a property in my ViewModel. public class MyDataContext :…
Torbjörn Kalin
  • 1,976
  • 1
  • 22
  • 31
2
votes
1 answer

PropertyChangedCallback invokes prior to OnApplyTemplate in WinRT

I am creating a WinRT CustomControl that has a dependency property with PropertyChangedCallback. In that Callback method I try to set values on some of the control's parts that I retrieve from OnApplyMethod using the GetTemplateChild() method. The…
Stephan Ronald
  • 1,395
  • 2
  • 14
  • 39
2
votes
1 answer

Get method data continuously without while

I'm trying to get data from a Kinects accelerometer, but it doesn't have a change notification event, so to get the data, I'm using a while loop right now. Is there any way to bind the AccelerometerGetCurrentReading () methods result to a property…
Dániel Nagy
  • 11,815
  • 9
  • 50
  • 58
2
votes
1 answer

Pass propertychanged from Model to View when no databinding

I know this has been discussed a lot but I haven't been able to get this working. I have a View - ViewModel - Model in WPF. I need to pass the info that a property in Model has changed. I need the information eventually to be handled in the…
Nuts
  • 2,755
  • 6
  • 33
  • 78
2
votes
1 answer

Capture property change using its setter

I want to be notified when a property changes so that I can log the oldvalue and new value of the property in database. So I decided to go with the approach of property setter and have a generic method that handles all properties. I created below…
Zaki
  • 5,540
  • 7
  • 54
  • 91
2
votes
1 answer

ObservableCollection through WCF

I'm trying since days to get a PropertyChanged event from my wcf-service to a wcf-client if a collection on server side has changed(by client action or server action). There must be a better solution instead of using callbacks and reload the list...…
Vince
  • 21
  • 2
2
votes
2 answers

PropertyChanged event null after setting DataContext

I am setting the DataContext for my View in the View's Constructor to an instance of my ViewModel, just standard stuff. Shortly thereafter, an UPDATE_RECENT_DOCUMENTS_LIST Event fires from the Event Aggregator which my ViewModel catches correctly. A…
estarkey7
  • 63
  • 3
  • 8
1
vote
2 answers

NullReferenceException when using Treeview and PropertyChanged

I'm getting a NullReferenceException when updating a bound property in my view model. This only happens when I use the TreeView control in the view. If I replaced it with a list, the exception goes away. This is where the debugger breaks in my…
Bob Horn
  • 33,387
  • 34
  • 113
  • 219