"MVVM ".
! .
MVVM , , - Xaml. " " - .
Sometimes handling an event is the easiest and best way to achieve your goal. When this situation, hug it, solve your problem and continue. Sometimes in XAML itโs not even possible to achieve the goal. In these cases, drop the view logic into the code code and move on.
It is much more important to preserve the architectural goals of MVVM (separation of problems between layers) than to strictly follow the rules (for example, to avoid coding). If this distinction is not made, you are short of forest for trees.
source
share