`Datagrid` unable to input text in `DialogHost`
Coloryr opened this issue · 8 comments
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>
....
To be precise, it is impossible to input text after selecting it
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.
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
That affects only DataGrid inside Dialogs?
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
@Coloryr is this issue still relevant? (Sorry, i didn't have time to check, my bad)
@Coloryr is this issue still relevant? (Sorry, i didn't have time to check, my bad)
No test, wait a second.
It can be work now.