c# - WPF Binding nightmares -


so have class

public class objectdatamodel {     public observablecollection<objectclassa> myobjectcollection; }  public class objectclassa {     public objecttypea myobject;     public bitmapimage mybmp; } 

now have grid control itemssource wish bind myobject of myobjectcollection.

how that?

you must expose ur binding target properties not fields (like do).

<window> <window.datacontext><local:objectdatamodel/></window.datacontext> <grid> <listview itemssource={binding myobjectcollection}/> </grid> </window> 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -