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

Datagrid unable to input text in DialogHost #47

Open
Coloryr opened this issue Feb 19, 2024 · 5 comments
Open

Datagrid unable to input text in DialogHost #47

Coloryr opened this issue Feb 19, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Coloryr
Copy link

Coloryr commented Feb 19, 2024

I put a datagrid in dialoghost, but it can be edit

<dialog:DialogHost DisableOpeningAnimation="True" Identifier="Main">
    <dialog:DialogHost.DataTemplates>
        <DataTemplate DataType="vm:AddAskModel">

            ....

            <DataGrid
                Width="200"
                Height="150"
                Margin="5,0,0,0"
                AutoGenerateColumns="False"
                CanUserResizeColumns="True"
                CanUserSortColumns="False"
                ItemsSource="{Binding ServerList}">
                <DataGrid.Columns>
                    <DataGridTextColumn
                        Binding="{Binding Name}"
                        Header="执行的服务器"
                        IsReadOnly="False" />
                </DataGrid.Columns>
            </DataGrid>
        </DataTemplate>
    </dialog:DialogHost.DataTemplates>

....

GIF

To be precise, it is impossible to input text after selecting it

@SKProCH SKProCH added the bug Something isn't working label Feb 19, 2024
@SKProCH
Copy link
Member

SKProCH commented Feb 19, 2024

Hello, @Coloryr

To be honest, I didn't understand what the problem was. Can you rephrase it? It might be worth specifying the expected behavior and the actual behavior also.

@Coloryr
Copy link
Author

Coloryr commented Feb 19, 2024

It may be a problem with the Chinese input method. When I input English, I can input it all at once, but inputting Chinese through Pinyin is not possible

@SKProCH
Copy link
Member

SKProCH commented Feb 19, 2024

That affects only DataGrid inside Dialogs?

@Coloryr
Copy link
Author

Coloryr commented Feb 19, 2024

That affects only DataGrid inside Dialogs?

yes, code in here

@Coloryr
Copy link
Author

Coloryr commented Feb 19, 2024

2024-02-19.20-23-41.1.mp4

When select any text, and the border color become black, it can't input any chat,
refocus the datagrid with not select text, that can be input chat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants