1

Topic: Visual parameters in Model-View

Let's assume at us there is what version  in which model separates from  that it was more clear the task we complicate its conditions: at us one model (not important model of logic, or I I twist-model) to which some representations simultaneously existing in  these representations are connected show the same data, but visually on a miscellaneous, and it can be both the predetermined order (type the list) and arbitrary (elements in the editor something there) a problem: in model the new data thus we is added we want to specify, what in specific representation this data  to show in the specific image, and in others representations - let will be by default as at adding let in model speak that in representation And them  to show in a special way? And we  do not want to transfer in model methods visual parameters for it not it

2

Re: Visual parameters in Model-View

Here type an example: the editor at it is  editing, and the navigator, you added  an element in data model, in the navigator clearly where it appears for there the accurate order (more or less), and here in the editor? It is understood that under the arm, but we cannot transfer coordinate in model that they  then in representation and still we assume at us a situation when there is no the coordinates, new elements came  from other place

3

Re: Visual parameters in Model-View

I while have two versions how to make 1. Which I use a current method: we transfer the data in model and all. Then we take the necessary representation and we search sootv-shchie  to the data for visual elements in this representation. We find them and we change as us it is necessary 2. The variant if adding happens through one of representations:  at first the data in the representation as it is necessary for us, and then - in model which informs remaining and they visualize new given by a method by default

4

Re: Visual parameters in Model-View

Hello, Barbar1an, you wrote: B> as at adding let in model speak that in representation And them  to show in a special way? And we  do not want to transfer in model methods visual parameters for it not it  1. Representation should not know about adding of the data in model, and  on changes I twist-model. 2. Look as it is arranged WPF: DataTemplates, TemplateSelectors, Convertrers - these pieces change appearance depending on type or value of property.... <<RSDN@Home 1.3.110 alpha 5 rev. 62>>

5

Re: Visual parameters in Model-View

Hello, Barbar1an, you wrote: B> a problem: in model new data B> thus we is added we want to specify, what in specific representation this data  to show in the specific image, and in others representations - let there will be by default In what a problem to get in model a flag which will be used by one representation and to be ignored by the remaining?