Click here to Skip to main content
15,901,373 members
Home / Discussions / WPF
   

WPF

 
QuestionProperly display dynamic calculations in databinding? [modified] Pin
artwallacex30-Apr-08 12:15
artwallacex30-Apr-08 12:15 
AnswerRe: Properly display dynamic calculations in databinding? Pin
Pete O'Hanlon30-Apr-08 12:41
mvePete O'Hanlon30-Apr-08 12:41 
GeneralRe: Properly display dynamic calculations in databinding? [modified] Pin
artwallacex30-Apr-08 12:54
artwallacex30-Apr-08 12:54 
GeneralRe: Properly display dynamic calculations in databinding? Pin
User 27100930-Apr-08 15:07
User 27100930-Apr-08 15:07 
GeneralRe: Properly display dynamic calculations in databinding? Pin
artwallacex30-Apr-08 15:21
artwallacex30-Apr-08 15:21 
GeneralRe: Properly display dynamic calculations in databinding? Pin
User 27100930-Apr-08 15:37
User 27100930-Apr-08 15:37 
GeneralRe: Properly display dynamic calculations in databinding? Pin
artwallacex30-Apr-08 15:53
artwallacex30-Apr-08 15:53 
GeneralRe: Properly display dynamic calculations in databinding? Pin
User 27100930-Apr-08 16:01
User 27100930-Apr-08 16:01 
If you have a field that changes anytime other properties are changed, you can raise that event in the PropertyChanged method.

INotifyPropertyChanged interface just notifies the UI when an individual property is changed. This is currently the standard method for property change notification.

Another option you have is to create an object that has Dependency Properties. These have all the plumbing built in for change notification.

Have a look at my article:
http://www.codeproject.com/KB/WPF/WPFBusinessAppsPartThree.aspx[^]

Go look how I did the time display control. It also has a read only property that changes every 60 seconds and notifies the UI.

There are plenty of articles here on Code Project on writing your own Dependency Properties if you want to go that route.

Cheers, Karl

» CodeProject 2008 MVP
» Microsoft MVP - Client App Dev

My Blog | Mole's Home Page | MVP Profile

Just a grain of sand on the worlds beaches.



modified 27-Feb-21 21:01pm.

GeneralRe: Properly display dynamic calculations in databinding? Pin
artwallacex30-Apr-08 16:26
artwallacex30-Apr-08 16:26 
GeneralRe: Properly display dynamic calculations in databinding? Pin
Ed.Poore3-May-08 0:08
Ed.Poore3-May-08 0:08 
GeneralRe: Properly display dynamic calculations in databinding? [modified] Pin
artwallacex1-May-08 10:51
artwallacex1-May-08 10:51 
GeneralRe: Properly display dynamic calculations in databinding? Pin
User 2710092-May-08 15:18
User 2710092-May-08 15:18 
QuestionPlease help me in wpf/expression blend Pin
kishorekumar.malla@live.com30-Apr-08 0:07
kishorekumar.malla@live.com30-Apr-08 0:07 
AnswerRe: Please help me in wpf/expression blend Pin
User 171649230-Apr-08 0:43
professionalUser 171649230-Apr-08 0:43 
AnswerRe: Please help me in wpf/expression blend Pin
Pete O'Hanlon30-Apr-08 1:37
mvePete O'Hanlon30-Apr-08 1:37 
AnswerRe: Please help me in wpf/expression blend Pin
User 27100930-Apr-08 3:04
User 27100930-Apr-08 3:04 
GeneralRe: Please help me in wpf/expression blend Pin
Pete O'Hanlon30-Apr-08 3:21
mvePete O'Hanlon30-Apr-08 3:21 
GeneralRe: Please help me in wpf/expression blend Pin
User 171649230-Apr-08 10:38
professionalUser 171649230-Apr-08 10:38 
GeneralRe: Please help me in wpf/expression blend Pin
Pete O'Hanlon30-Apr-08 11:13
mvePete O'Hanlon30-Apr-08 11:13 
GeneralRe: Please help me in wpf/expression blend Pin
User 27100930-Apr-08 15:04
User 27100930-Apr-08 15:04 
GeneralRe: Please help me in wpf/expression blend Pin
Pete O'Hanlon30-Apr-08 23:14
mvePete O'Hanlon30-Apr-08 23:14 
GeneralRe: Please help me in wpf/expression blend Pin
User 17164921-May-08 0:35
professionalUser 17164921-May-08 0:35 
GeneralRe: Please help me in wpf/expression blend Pin
Pete O'Hanlon1-May-08 1:01
mvePete O'Hanlon1-May-08 1:01 
GeneralRe: Please help me in wpf/expression blend Pin
User 17164921-May-08 1:09
professionalUser 17164921-May-08 1:09 
GeneralRe: Please help me in wpf/expression blend Pin
Jammer2-May-08 4:32
Jammer2-May-08 4:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.