Exemple #1
0
        public MultiInputWindow(List <string> addresses = null)
        {
            InitializeComponent();

            // Set initial focus to text box.
            Loaded += (sender, e) =>
                      MoveFocus(new TraversalRequest(FocusNavigationDirection.Next));

            // Pre-populate textbox if any addresses were supplied.
            if (addresses != null &&
                addresses.Count > 0 &&
                !addresses.All(x => string.IsNullOrWhiteSpace(x))
                )
            {
                // Convert list to multiline string and select all text.
                MyAddresses.Text = string.Join(Environment.NewLine, addresses);
                MyAddresses.SelectAll();
            }
        }
 public void ClickMyAddresses()
 {
     MyAddresses.Click();
 }