コード例 #1
0
        /// <summary>
        /// Sends a <see cref="TextChanged"/> event.
        /// </summary>
        /// <param name="newText">The current content of the control.</param>
        /// <param name="cancellation">A token to hold cancellation information.</param>
        protected virtual void NotifyTextChanged(string newText, CancellationToken cancellation)
        {
            EditableTextBlockEventArgs Args = CreateTextChangedEvent(newText, cancellation);

            RaiseEvent(Args);
        }
コード例 #2
0
        /// <summary>
        /// Sends a <see cref="EditEnter"/> event.
        /// </summary>
        /// <param name="cancellation">A token to hold cancellation information.</param>
        protected virtual void NotifyEditEnter(CancellationToken cancellation)
        {
            EditableTextBlockEventArgs Args = CreateEditEnterEvent(ctrlTextBlock.Text, cancellation);

            RaiseEvent(Args);
        }