Esempio n. 1
0
        /// <summary>
        /// Handles changes to the ErrorMessage property.
        /// </summary>
        /// <param name="d">Source dependendency o bject</param>
        /// <param name="e">Event argument</param>
        private static void OnErrorMessageChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            VoiceToTextBox target   = (VoiceToTextBox)d;
            string         oldValue = (string)e.OldValue;
            string         newValue = target.ErrorMessage;

            target.OnErrorMessageChanged(oldValue, newValue);
        }
Esempio n. 2
0
        /// <summary>
        /// Handles changes to the VoiceEnabled property.
        /// </summary>
        /// <param name="d">Source dependendency o bject</param>
        /// <param name="e">Event argument</param>
        private static void OnVoiceEnabledChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            VoiceToTextBox target   = (VoiceToTextBox)d;
            bool           oldValue = (bool)e.OldValue;
            bool           newValue = target.VoiceEnabled;

            target.OnVoiceEnabledChanged(oldValue, newValue);
        }