If your application cares about positioning the user interface elements that it displays to the user, I would say that the data defining this positioning is a very legitimate part of your models.
Do not confuse the ideal of decoupling the interface from models and ViewModels with real business requirements. For example, in an application such as Visio, you can say that the exact placement of objects on a page is βview-onlyβ, and most importantly, it is only the properties of the object and the relationship between them. However, from the point of view of the user, it is very important to place objects in the workspace. In other words, this is part of your data model.
source share