Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After the input of ContentDialog is forcibly enabled through ITextInputConsumer, there is a problem with normal text box input #17

Open
Gaoyifei1011 opened this issue Jan 2, 2025 · 3 comments

Comments

@Gaoyifei1011
Copy link

After the input of ContentDialog is forcibly enabled through ITextInputConsumer, there is a problem with normal text box input

---------------------------------------------

强行通过 ITextInputConsumer 开启 ContentDialog 的输入后,普通的文本框输入存在问题


After the ContentDialog input of Xaml islands is enabled through ITextInputConsuonsumer and ITextInputProducer, the input performance of ContentDialog is normal. The TextBox of a normal window, however, repeats the input when entering characters.The application being tested uses a Window created by FrameworkView and adds controls to Window.current to display it.

---------------------------------------------

通过 ITextInputConsuonsumer 和 ITextInputProducer 开启 Xaml islands 的 ContentDialog 输入后,ContentDialog 的输入表现正常,然而普通窗口的 TextBox 在输入字符时却重复输入。测试的应用使用的是 FrameworkView 创建的窗口,并在 Window.Current 上添加控件显示的。


image
image

@ShortDevelopment
Copy link
Owner

@Gaoyifei1011 Do you have some sample code for me to test?

@Gaoyifei1011
Copy link
Author

@Gaoyifei1011 Do you have some sample code for me to test?

https://github.com/driver1998/XamlHost

You could refer to this project

@ShortDevelopment
Copy link
Owner

I could reproduce the issue using your sample code, but not using a quick test with my library.
I'm afraid I don't have much time to investigate this right now.

For reference: I got the ITextProducer stuff from the ICoreWindowFactory impl from CoreUIComponents.dll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants