I have a generic question. I am writing a program that will eventually have data tables and so forth. I am trying to determine if I am on the right track for implementing mvvm correctly since this is my first application of such.
The application is currently just the foundation of the program. It is a simple window with a tab control.
The application is just controlling some layout features, but it is about to cross into using and manipulating data.
For example:
The main window and tab control have very basic XAML on there actual sheets. These pull in styles and designs from global resource dictionaries. The dictionaries control only the common layout and design elements. The views for these controls have some basic code behind that calls global functions and subs. The specific layout of the tabs and any controls within them are written into and read from XML. This information is stored into a collection of a custom class: one for the tabs themselves and the other for the controls within the tabs. Whenever the user changes the layout, the view fires a global function through its small code behind which makes adjustments to the collection. When the application is closed, the settings are saved to an XML file.
A similar flow will be done when certain controls are linked to SQL data but instead of a collection, I would like to use data tables. I know that in WinForms it was relatively easy to bind a data table to a number of controls. Based on the information that I have seen, the best option for two way communication is by using an obseravable collection. I am just not entirely sure if I am doing the project the correct way or if I should change things now before I become too involved.
Any suggestions or help articles would be greatly appreciated. I can read C# as well as vb if that helps.