microsoft / XamlBehaviorsWpf

Home for WPF XAML Behaviors on GitHub.
MIT License
840 stars 138 forks source link

Associating TextBlock with Checkbox #161

Closed mwpowellhtx closed 6 months ago

mwpowellhtx commented 6 months ago

Or any other label-esque control, with a target other control. In this case, yes, I am wanting <TextBlock/> to <Checkbox/> click behavior. When the source WPF control is clicked, the target WPF control should receive focus. As I understand it, there is currently no property that says target other control, in WPF, and attached behaviors is the way to go about doing this? Is it supported at all in the current versions of XamlBehaviorsWpf?

brianlagunas commented 6 months ago

There are no built-in behavior to accomplish this. You will need to implement this behavior yourself.

mwpowellhtx commented 6 months ago

Unpacking that a bit, and just to clarify to be clear, no native way to do that? And nothing offered by way of this package? Thanks...