Example #1
0
 private void ChangeText(object sender, RangeAddressEventArgs args)
 {
     Dispatcher.Invoke(new Action(() =>
     {
         if (_focusedBox != null)
         {
             _focusedBox.Text       = args.Address;
             _focusedBox.CaretIndex = _focusedBox.Text.Length;
         }
     }));
 }
Example #2
0
 private void ChangeText(object sender, RangeAddressEventArgs args)
 {
     Invoke(new Action(() =>
     {
         if (_focusedBox != null)
         {
             _focusedBox.Text = args.Address;
             _focusedBox.Select(_focusedBox.Text.Length, 0);
         }
     }));
 }