Source/Controls/TextBoxDropDown.cs

(开头部分) 56KB

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

#if FRAMEWORK20
using System;
using System.Text;
using System.ComponentModel;
using System.Drawing;
using DevComponents.Editors;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Collections;
using System.Drawing.Design;
using System.Security.Permissions;

namespace DevComponents.DotNetBar.Controls
{
    /// <summary>
    /// Represents single line text box control with the drop down button to display custom control on popup and additional custom buttons. 
    /// </summary>
    [ToolboxBitmap(typeof(TextBoxDropDown), "Controls.TextBoxDropDown.ico"), ToolboxItem(true), DefaultProperty("Text"), DefaultBindingProperty("Text"), DefaultEvent("TextChanged"), Designer(typeof(DevComponents.DotNetBar.Design.TextBoxDropDownDesigner))]
    public class TextBoxDropDown : PopupItemControl, IInputButtonControl, ICommandSource
    {
        #region Private Variables
        private TextBoxX _TextBox = null;
        private ButtonItem _PopupItem = null;
        private static string _DropDownItemContainerName = "sysPopupItemContainer";
        private static string _DropDownControlContainerName = "sysPopupControlContainer";
        private Color _FocusHighlightColor = ColorScheme.GetColor(0xFFFF88);
        private bool _FocusHighlightEnabled = false;
        #endregion

        #region Events
        /// <summary>
        /// Occurs when Clear button is clicked and allows you to cancel the default action performed by the button.
        /// </summary>
        public event CancelEventHandler ButtonClearClick;
        /// <summary>
        /// Occurs when Drop-Down button that shows popup is clicked and allows you to cancel showing of the popup.
        /// </summary>
        public event CancelEventHandler ButtonDropDownClick;
        /// <summary>
        /// Occurs when ButtonCustom control is clicked.
        /// </summary>
        public event EventHandler ButtonCustomClick;
        /// <summary>
        /// Occurs when ButtonCustom2 control is clicked.
        /// </summary>
        public event EventHandler ButtonCustom2Click;
        /// <summary>
        /// Occurs when the text alignment is changed.
        /// </summary>
        [Description("Occurs when the text alignment is changed.")]
        public event EventHandler TextAlignChanged;
        /// <summary>
        /// Occurs when the value of the Modified property has changed.
        /// </summary>
        public event EventHandler ModifiedChanged;
        #endregion

        #region Constructor
         /// <summary>
        /// Initializes a new instance of the TextBoxDropDown class.
后面还有 1435 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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