Trong MVVM, data context của nó được đặt cho view model.
In MVVM, the view's data context is set to the view model.
Bạn cũng có thể chỉ định trong XAML rằng view model được thiết lập cho view thông qua data context.
We can also specify in XAML that the view model be set as the view's data context.
Views sử dụngdata binding để tương tác với lớp view model.
Views use data binding to interact with view model classes.
View model có thể định nghĩa các trạng thái logic mà view thể hiện trực quan cho người dùng.
The view model may define logical states that the view can represent visually to the user.
Chúng có thể được định nghĩa như là command objects hoặclà command methods trong view model.
They can be defined as command objects oras command methods in the view model.
View có reference đến View- Model nhưng View- Model không có thông tin gì về View..
View has a reference to ViewModel but ViewModel has no information about the View.
Trong WPF, bạn có thể liên kết một mẫu dữ liệu với một kiểu view model ở mức ứng dụng( application level).
In WPF, you can associate a data template with a view model type at the application level.
View model xác định properties, commands, và events, để control trong view có thể data- bind.
View models define properties, commands, and events, to which controls in the view can data-bind.
Điều này cho phép tự động lan truyền sự thay đổi, trong state của View- Model đến View..
This enables automatic propagation of changes, within the state of view model to the View..
NET MVC thìModel có thể là một Domain Model,View Model hay là một Edit model..
NET Core MVC Apps,the model could be a Domain model,View Model or an Edit Model..
Nó cũng được sử dụng để cấu hình và khởi tạo danh mục mô-đun và shell' s view và view model hoặc presenter.
It is also used to configure and initialize the module catalog andthe shell's view and view model or presenter.
View có reference đến View- Model nhưng View- Model không có thông tin gì về View..
A view has information about the view-model but the view-model does not have any information about the view.
Nó lấy model từ route và tạo ra các kết nối giữa các view, model, and template.
It takes the model from route and makes the connection between the view, model, and template.
Để tối thiểu logic trong View, Model nên cung cấp các methods test được cho mỗi yếu tố cần phải hiển thị.
In order to minimize the logic in the View, the Model should be able to provide testable methods for every element that gets to be displayed.
Vào thời điểm thực thi, view, đã được định nghĩa bởi mẫu dữ liệu, sẽ tự động được tạo và data context của nó được đưa vào view model tương ứng.
At run time, the view, as defined by the data template, will be automatically instantiated and its data context set to the corresponding view model.
Có mối quan hệ many- to-one giữa View và View- Model nghĩa là nhiều View có thể được map với một View- Model.
There is many to one relationship between View and View-Model means many Views can be mapped to one View-Model.
Sự tương tác giữa View và View model của nó có lẽ là điều quan trọng nhất cần xem xét nhưng sự tương tác giữa Model và View model cũng rất quan trọng.
The interactions between the view and its view model are perhaps the most important to consider, but the interactions between the model classes and the view model are also important.
Bi- directional data binding hay two-way data binding giữa View và View-Model đảm bảo rằng các models và properties ở View-Model được đồng bộ với View..
This bi-directional data binding betweenthe view and the ViewModel make sure that the models and the ViewModel's properties are in sync with the view.
Mặt khác, khả năng Model ViewView Model cho phép các nhà phát triển làm việc riêng trên cùng một phần ứng dụng với cùng một bộ dữ liệu.
On the other hand, the Model ViewView Model capability allows developers to work separately on the same app section with the same set of data.
Bi- directional data binding hay two- way data binding giữa View và View- Model đảm bảo rằng các models và properties ở View- Model được đồng bộ với View..
The bi-directional databinding or the two way databinding between the view and the viewmodel ensures that the models and properties in the viewmodel is in sync with the view.
Tiếng việt
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Bahasa indonesia
Italiano
日本語
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
中文