コード例 #1
0
        private void PrewiewTextInput(object sender, TextCompositionEventArgs e)
        {
            TextBox textBox = sender as TextBox;
            string  text    = textBox != null ? textBox.Text : string.Empty;

            e.Handled = TextHandler.Filter(e.Text, text);
        }