Model-View Separation

The Windows Media Center Presentation Layer separates an application's visual presentation from its logic by employing a model/view approach:

  • The model provides the logic of the application (the code and data), and is developed using a managed code language such as C# and the Microsoft .NET Framework. The model is non-visual.
  • The view provides the look and behavior of the application (the user interface), and is authored in Media Center Markup Language (MCML).

This separation allows the UI to be developed separately from the model items. However, for anything to occur when interacting with the UI, the view must be associated with the model. For example, a button must be associated with code to handle a click event. This binding is achieved by parameters, which are named objects.

Sample Explorer

  • Fundamentals > Model-View Separation
  • Fundamentals > Model-View Separation - Code

See Also