Click on a label to select a radio cassette in WPF with MVVM

I am learning WPF and I am wondering if there is an idiomatic way to create a shortcut that when clicked toggles a checkbox or radio button. I was somewhat surprised that attribute Targetto Labelnot do so. I am using the MVVM pattern (with MVVMFoundation base).

+3
source share
1 answer

The target property sets focus to the target element when the button for predefined shortcut access is pressed, so it does not do what you want.

, . 'content' , .

+3

Source: https://habr.com/ru/post/1751244/


All Articles