Translation of "ViewModel" in English
We couldn’t find this entry. Showing approximate results. Check your spelling or suggest adding this term to the dictionary.
Das ViewModel enthält die Interaktion beider Schichten.
The ViewModel contains the interaction between the two layers.
Ein simples Beispiel ist die Aufbereitung eines Willkommens-Textes im ViewModel
A simple example is the preparation of a welcome message in the ViewModel
Wie sollte das ViewModel das Formular schließen?
How should the ViewModel close the form?
Es muss nur sichergestellt werden, dass es nicht mehrere Views für das gleiche ViewModel und die gleiche Plattform gibt.
You only need to ensure you don't have multiple views for the same ViewModel and the same platform.
Stattdessen wird this innerhalb des Controllers an eine Variable (z.B. vm für ViewModel) gebunden, was zu besserer Lesbarkeit führt.
Thisis instead connected to a variable (e.g. vm for ViewModel) within the controller, which results in better legibility.
Da die Logik, die sich darauf bezieht, was mit den Daten gemacht werden kann, in die UI eingebettet ist (oder in ViewModel, sofern Sie diesen Schritt gemacht haben), ist sie über die Anwendung verteilt.
Because the logic regarding what can be done with the data is embedded in the UI (or in the ViewModel, if you've taken that step), it will be scattered across the application.
Durch die UI-Unabhängigkeit kann das ViewModel mit Unit-Tests getestet werden.
Because of the independence from the UI the ViewModel can be tested with unit tests.
Das Verschieben des Ladevorgangs für die Kategorien in ViewModel ermöglicht es zudem, die Ansicht beträchtlich zu bereinigen (XAML, CodeBehind usw.).
Also, moving the process of loading the categories into the ViewModel allows us to clean up the view significantly (XAML and code-behind alike).
Einer der Vorteile dieser Struktur ist, dass der vollständige UI-Zustand sowie die UI-Logik in einem UI-unabhängigen Modell (ViewModel) gekapselt sind.
One of the benefits of this structure is that all UI state and UI logic is encapsulated in a ViewModel that is independent from the UI.
Das ViewModel selbst kennt die View nicht und hat keine Abhängigkeiten zu konkreten UI-Elementen.
The ViewModel doesn't know the View and has no dependencies to specific UI components.
Nun muss dieses ViewModel nur noch mit der View verknüpft werden.
Now this ViewModel has to be connected with the View.
Bei MVVM existiert dazu ein ViewModel, das den UI-Zustand abbildet.
To do this MVVM defines a ViewModel that represents the state of the UI.
Zwischen View und ViewModel befindet sich noch eine Art Zwischenschicht mit Komponenten, die eher dem View-Layer zugerechnet werden.
Between View and ViewModel is yet another kind of intermediate layer with components that are more likely to be attributed to the View- Layer.