Help not to get lost in the logic of generating the contents of windows.
Described the window container in which dynamic content should be placed depending on the "editable" object.
For example, an object contains 3 string fields and one int, you need to send it to the user for editing and then save the changed data.
Not all fields are edited, but this can be solved by assigning attributes to these fields (well, this problem has nothing to do, as it seems to me).
So far I have done:
- Described the window that will open for editing
- Described all independent visual elements and started a named grid, where he intended to put TextBlock, Edit, and so on for editing
- Described sample objects that may need to be edited.
Now where is my plug:
Who should build the visual editor for the object?
- Should the object itself issue a UI for its editing and place it in the base window?
- Does the window have to accept an editable object in DataContext and build an editor for it itself?
Thank you in advance.
PS: Maybe he explained it very messy, it’s just that I don’t have enough knowledge to operate WPF terms, I train on cats.
PPS: Yes, I also plan a window manager, since several objects can be edited at the same time, which will contain a list of created windows and place them, for example, on a tabcontrol. But I will think about it later, at least with one object to cope.