wpf - Windows Narrator reads the names of all the controls in the window (even hidden ones) -
i need make application visually impaired friendly... , facing problem: windows narrator reads controls names in window despite of them hidden.
i have app used winforms write it, , there works fine.
after looking in ui spy saw winforms app not exposing hidden controls , wpf exposing controls in window.
can it's bug in wpf?
i having same problem. based on alexis's answer, wrote code bellow. works me.
public class myautocomplete : radautocompletebox { public myautocomplete () { //init stuff here } protected override automationpeer oncreateautomationpeer() { return new myautomationpeer(this); } } internal class myautomationpeer : radautocompleteboxautomationpeer { public myautomationpeer(frameworkelement owner) : base(owner) { } protected override list<automationpeer> getchildrencore() { return new list<automationpeer>(); } }
Comments
Post a Comment