Here's an easy one.

Sep 23, 2010 at 1:14 AM

Totally NOOB here.

I am having data binding issues.  I totally understand the concepts, but implementation details are confusing the daylights out of me.  I'm starting to get that "deer in the headlights" look.

I have a model (for simplicity here it is)

class Table

{ public string TableName { get { return "This is the table name"; } }

public string TableDesc { get { return "This is a description of a table"; } }

public Table() { }


I have also a view model

class TableViewModel : INotifyPropertyChanged


private Table _table = new Table();

public String Name { get { return _table.tableName; } }

public String Desc { get { return _table.TableDesc; } }

protected void NotifyChanged( string propertyName )

{ if (PropertyChanged != null ) PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); }

public event PropertyChangedEventHandler PropertyChanged;


What do I need to do in my view to get this to display. Either the name of the desc property of my model?

I could create a view, but just for simplicity I'm trying to put it in just a window.

All classes are at root in my application (such as it is).

Live Life Happy!



Sep 23, 2010 at 3:13 PM

Wow, two weeks of solid pain trying to grasp this concept. I've got it now.

Sorry for the premature post.