WPF Controls

I’ve spent the last couple of nights struggling with WPF user/custom controls. 
 
Currently I am adding usercontrols to the children collection of a canvas in the MainWindow OnInitialized() override, getting the data to create the child from the database.
 
Now ideally this could all be done declaratively, by binding an observable collection to a custom control which can handle the user control creation and presentation, and encapsulating all that logic in the control rather than the main window.
 
I’ll have another go tonight I think.
 
 
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: