コード例 #1
0
        /// <summary>
        /// The on text changed.
        /// </summary>
        /// <param name="o"> The o. </param>
        /// <param name="e"> The e. </param>
        private static void OnTextChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            InputBase inputBase = o as InputBase;

            if (inputBase != null)
            {
                inputBase.OnTextChanged((string)e.OldValue, (string)e.NewValue);
            }
        }
コード例 #2
0
        /// <summary>
        /// The on culture info changed.
        /// </summary>
        /// <param name="o"> The o. </param>
        /// <param name="e"> The e. </param>
        private static void OnCultureInfoChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            InputBase inputBase = o as InputBase;

            if (inputBase != null)
            {
                inputBase.OnCultureInfoChanged((CultureInfo)e.OldValue, (CultureInfo)e.NewValue);
            }
        }