Button add-in to display a TextBox

466
1
Jump to solution
03-24-2022 04:20 AM
WaveofDarkness
New Contributor

Hello everyone

I want to create a button add-in and I need to get text input from the user, for example when they click it a box appears (just like MessageBox) which they can fill, can someone explain to me how it is done?

I know how to create add-ins and how to create a From with TextBox in it, but I can not find a way to combine them together. I tried searching for it, but only found things on TextBox styles or text boxes inside Dockpane.

Maybe it can be done using EditBox or another ArcPro SDK components, but it needs to be done using TextBox 

Thank you in advance.

0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri Regular Contributor

Hi,

You can check Licensing sample . RegistrationWindow is dialog which could be a base for your needs. To open it from add-in button add code below:

                        var regWindow = new RegistrationWindow();
                        regWindow.ShowDialog();

 

View solution in original post

1 Reply
GKmieliauskas
Esri Regular Contributor

Hi,

You can check Licensing sample . RegistrationWindow is dialog which could be a base for your needs. To open it from add-in button add code below:

                        var regWindow = new RegistrationWindow();
                        regWindow.ShowDialog();