MessageBox.Avalonia icon indicating copy to clipboard operation
MessageBox.Avalonia copied to clipboard

Setting focus for input message box

Open anovik opened this issue 3 years ago • 0 comments

I create input message box to ask user for a string input:

var messageBoxWindow = MessageBox.Avalonia.MessageBoxManager
                .GetMessageBoxInputWindow(new MessageBoxInputParams() 
                    { ContentTitle = "Caption", ContentMessage = "Message", WindowStartupLocation = WindowStartupLocation.CenterOwner });
var result = await messageBoxWindow.ShowDialog(owner); 

Is there a way to set focus to the text box in order the user could start typing the string immediately?

anovik avatar Jul 08 '22 13:07 anovik