Does the MVVM pattern assume binding updates are always synchronous?

This question is not specific to any one UI platform, but suppose in a WPF-like UI I have 3 RadioButtons each two-way bound to separate view model properties – bool Value1, bool Value2, and bool Value3 – and grouped under a common group name so that the UI enforces a mutually exclusive relationship. Suppose that Value1 is true by default.

Now suppose in some other part of the code, say in a command action handler, I programmatically set Value2 to true, which updates the bound RadioButton. The UI then also enforces mutual exclusivity, setting the Value1-bound RadioButton to false, and raises a target-triggered source update to the Value1 binding to set its value to false.

We know typically all this happens synchronously and so Value1‘s value will be false as soon as Value2‘s setter completes. However, is this merely an implementation detail, or does MVVM itself presume or even require this to be the case in order for the pattern to work coherently?

For background, the question is motivated by my exploration of building an MVVM-type framework in asynchronous contexts – one concrete example being Blazor where Javascript is always invoked asynchronously from the C# side. Thus in such a framework, the answer to my question would clearly be no – you can’t rely on the UI doing anything prior to the return of the setter and the PropertyChanged raise, and so you can’t assume Value1‘s value is immediately in sync with the UI. In such a case the view model itself would have to enforce the mutual exclusivity and not rely on any behavior innate to a RadioButton.

On the other hand all the major MVVM UIs I know of operate on a single UI thread and so typically the entire control flow from Value2‘s PropertyChanged firing all the way to Value1‘s source update should occur synchronously. The only exception would be when the view model itself is operating on multiple threads and UI updates have to be posted to a dispatcher, which is outside the scope of what I’m concerned with. I therefore wonder if it’s likely that the synchronicity of binding updates is simply baked into the pattern and assumed by most everyone, if not explicitly documented anywhere.

Thus I’m not exactly asking the question for myself – nor am I asking for a specific framework like WPF – but I’m trying to determine whether an MVVM framework that was only capable of operating with asynchronous bindings is viable, or whether indeed the pattern just isn’t compatible with asynchronous bindings due to the strong likelihood of the view and view model going out of sync for nontrivial periods of time.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật