ScreenToGif/Controls/NumericTextBox.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.ComponentModel;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using ScreenToGif.Util;

namespace ScreenToGif.Controls
{
    /// <summary>
    /// Numeric only TextBox.
    /// </summary>
    [Obsolete]
    [Description("Numeric only TextBox")]
    public class NumericTextBox : TextBox
    {
        #region Variables

        private TextBox _textBox;
        private bool _ignore = false;

        public readonly static DependencyProperty MinValueProperty;
        public readonly static DependencyProperty ValueProperty;
        public readonly static DependencyProperty MaxValueProperty;
        public readonly static DependencyProperty IsHexProperty;
        public readonly static DependencyProperty IsBoundProperty;

        #endregion

        #region Properties

        /// <summary>
        /// The minimum value of the numeric text box.
        /// </summary>
        [Description("The minimum value of the numeric text box.")]
        public long MinValue
        {
            get { return (long)GetValue(MinValueProperty); }
            set { SetCurrentValue(MinValueProperty, value); }
        }

        /// <summary>
        /// The actual value of the numeric text box.
        /// </summary>
        [Description("The actual value of the numeric text box.")]
        public long Value
        {
            get { return (long)GetValue(ValueProperty); }
            set
            {
                SetCurrentValue(ValueProperty, value);
                RaiseValueChangedEvent();
            }
        }

        /// <summary>
        /// The maximum value of the numeric text box.
        /// </summary>
        [Description("The maximum value of the numeric text box.")]
后面还有 193 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。