BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi,
I have to make the keyboard appear while pressing the touch on the textbox area.
The problem is that I don't have to trigger the event while setting via the up and down buttons
See Attachment
It would be perfect to recover the click event on the text part.
it's possible?
Attachment: wpfappmaster_29c0015b.zip
Hi Edoardo Gazzola,
You can achieve your requirement by accessing the text area (DoubleTextBox) through VisualTree and then raising the event using AddHandler. We have created a simple sample based on your requirement please refer to the sample for your reference.
CodeSnippets:
DoubleTextBox doubleText=updown.Template.FindName("DoubleTextBox",updown) as DoubleTextBox;
If (doubleText!=null)
{
doubleText.AddHandler(DoubleTextBox.PreviewMouseDownEvent, new MouseButtonEventHandler(DoubleText_PreviewMouseDown), true);
}
Hi Bagavathi Perumal,
Thank you fro your answer,
I confirm that your suggestion works.
But I notice that after the popup appears I have to make two taps instead of one as if the first tap is to get the focus of the popup.
Can you give me some suggestions on this?
Hi Bagavathi Perumal,
I also tried the Activate and Focus window methods once it loaded with no success.
Attached is the project.
Regards
Hi Bagavathi Perumal,
I'm currently solving by wrapping the ShowDialog method with Dispatcher.BeginInvoke
Do you think it is correct...?
Hi Edoardo Gazzola,
Regards,
Bagavathi Perumal A
Hi Bagavathi Perumal,
Thank you for your technical support.
Regards
Hi Edoardo Gazzola,
Regards,
Bagavathi Perumal A