Page 1 of 1

Is there a simple way to remove focus from a textbox when click outside of it

Posted: 09 Nov 2022, 06:21
by decai
Hi,

Our app has many TextBox, is there a way to remove TextBox focus when click out of it ?

Re: Is there a simple way to remove focus from a textbox when click outside of it

Posted: 09 Nov 2022, 10:35
by decai
We set the container Focusable="True" and add code below solve the problem. Thanks.
<b:Interaction.Triggers>
	<b:EventTrigger EventName="MouseDown">
		<noesis:SetFocusAction/>
	</b:EventTrigger>
</b:Interaction.Triggers>