SO i have CheckBox and since there's no CheckBox.PerformClick() method in WPF, is there a way to click a WPF CheckBox programmatically?
I found this solution but this for Button only:
ButtonAutomationPeer peer = new ButtonAutomationPeer(someButton);
IInvokeProvider invokeProv = peer.GetPattern(PatternInterface.Invoke) as IInvokeProvider;
invokeProv.Invoke();
Aucun commentaire:
Enregistrer un commentaire