Exemplo n.º 1
0
        private void txInput_TextChanged(object sender, TextChangedEventArgs e)
        {
            if (_validating)
            {
                return;
            }

            TextChanged.Cast <TextChangedEventArgs>().SafeInvoke(sender, e);

            //if (txInput.Document.Blocks.IsEmpty())
            if (Text.IsEmpty())
            {
                ShutPopupForEmptyTextBox();
                Validate();
            }
            else
            {
                FillMatchList();
                Validate();

                if (!_ppBox.Securities.IsEmpty())
                {
                    ShowAutoComplete();
                }
                else
                {
                    ShutPopupForEmptyTextBox();
                }
            }
        }