/// <summary>
        /// 当鼠标进入[记录列表]时
        /// </summary>
        private void RightCanvas_OnMouseEnter(object sender, MouseEventArgs e)
        {
            //显示[是否显示Bug回复]控件(把Opacity属性设置为1)
            AnimationTool.PlayGridOpacityAnimation(this.IsShowBugReplyGrid, null, 1, 0.25f);

            //显示“选择图片”按钮
            RecordInputBoxControl.ShowChooseImageButton();
        }
        /// <summary>
        /// 当鼠标移出[记录列表]时
        /// </summary>
        private void RightCanvas_OnMouseLeave(object sender, MouseEventArgs e)
        {
            //隐藏[是否显示Bug回复]控件(把Opacity属性设置为0)
            AnimationTool.PlayGridOpacityAnimation(this.IsShowBugReplyGrid, null, 0, 0.25f);

            //隐藏“选择图片”按钮
            RecordInputBoxControl.HideChooseImageButton();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RecordInputBoxUserControl = ((EasyBugManager.RecordInputBoxControl)(target));
                return;

            case 2:
                this.InputTextBox = ((System.Windows.Controls.TextBox)(target));

            #line 35 "..\..\..\..\..\..\Xaml\Control\Perfab\BugUi\RecordInputBoxControl.xaml"
                this.InputTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.InputTextBox_TextChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.SendButtonBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 4:
                this.EllipsisStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 5:
                this.Ellipsis1Border = ((System.Windows.Controls.Border)(target));
                return;

            case 6:
                this.Ellipsis2Border = ((System.Windows.Controls.Border)(target));
                return;

            case 7:
                this.Ellipsis3Border = ((System.Windows.Controls.Border)(target));
                return;

            case 8:
                this.ChooseImageGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.ImageListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 10:
                this.ImageMaxNumberStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
        /// <summary>
        /// 依赖项属性发生改变时,触发的事件:
        /// 当ImageCurrentNumberProperty依赖项属性,的属性值发生改变的时候,调用这个方法
        /// </summary>
        /// <param name="sender">依赖项对象</param>
        /// <param name="e">依赖项属性改变事件 的参数(里面有这个属性的新的值,和旧的值)</param>
        private static void OnImageCurrentNumberChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            //获取控件
            RecordInputBoxControl _recordInputBoxControl = sender as RecordInputBoxControl;

            //判断:如果当前的图片个数为0的话
            if ((int)e.NewValue <= 0)
            {
                //隐藏[图片个数]的Grid
                _recordInputBoxControl.ImageMaxNumberStackPanel.Visibility = Visibility.Collapsed;
            }

            //如果当前的图片个数大于等于0的话
            else
            {
                //显示[图片个数]的Grid
                _recordInputBoxControl.ImageMaxNumberStackPanel.Visibility = Visibility.Visible;
            }
        }
        /// <summary>
        /// 依赖项属性发生改变时,触发的事件:
        /// 当IsShowSubmitButtonAnimationProperty依赖项属性,的属性值发生改变的时候,调用这个方法
        /// </summary>
        /// <param name="sender">依赖项对象</param>
        /// <param name="e">依赖项属性改变事件 的参数(里面有这个属性的新的值,和旧的值)</param>
        private static void OnIsShowSubmitButtonAnimationChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            //获取控件
            RecordInputBoxControl _recordInputBoxControl = sender as RecordInputBoxControl;

            //判断
            switch ((bool)e.NewValue)
            {
            case true:
                _recordInputBoxControl.PlayEllipsisAnimation();                            //播放动画
                _recordInputBoxControl.EllipsisStackPanel.Visibility = Visibility.Visible; //显示省略号
                _recordInputBoxControl.SendButtonBorder.Visibility   = Visibility.Visible; //打开SendButtonBorder
                break;

            case false:
                _recordInputBoxControl.PlayEllipsisAnimation();                              //停止动画
                _recordInputBoxControl.EllipsisStackPanel.Visibility = Visibility.Collapsed; //隐藏省略号
                _recordInputBoxControl.SendButtonBorder.Visibility   = Visibility.Collapsed; //关闭SendButtonBorder
                break;
            }
        }
        /// <summary>
        /// 依赖项属性发生改变时,触发的事件:
        /// 当EllipsisNumberProperty依赖项属性,的属性值发生改变的时候,调用这个方法
        /// </summary>
        /// <param name="sender">依赖项对象</param>
        /// <param name="e">依赖项属性改变事件 的参数(里面有这个属性的新的值,和旧的值)</param>
        private static void OnEllipsisNumberChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            //获取控件
            RecordInputBoxControl _recordInputBoxControl = sender as RecordInputBoxControl;

            //判断
            switch ((int)e.NewValue)
            {
            //如果有0个省略号
            case 0:
                _recordInputBoxControl.Ellipsis1Border.Visibility = Visibility.Hidden;
                _recordInputBoxControl.Ellipsis2Border.Visibility = Visibility.Hidden;
                _recordInputBoxControl.Ellipsis3Border.Visibility = Visibility.Hidden;
                break;

            //如果有1个省略号
            case 1:
                _recordInputBoxControl.Ellipsis1Border.Visibility = Visibility.Visible;
                _recordInputBoxControl.Ellipsis2Border.Visibility = Visibility.Hidden;
                _recordInputBoxControl.Ellipsis3Border.Visibility = Visibility.Hidden;
                break;

            //如果有2个省略号
            case 2:
                _recordInputBoxControl.Ellipsis1Border.Visibility = Visibility.Visible;
                _recordInputBoxControl.Ellipsis2Border.Visibility = Visibility.Visible;
                _recordInputBoxControl.Ellipsis3Border.Visibility = Visibility.Hidden;
                break;

            //如果有3个省略号
            case 3:
                _recordInputBoxControl.Ellipsis1Border.Visibility = Visibility.Visible;
                _recordInputBoxControl.Ellipsis2Border.Visibility = Visibility.Visible;
                _recordInputBoxControl.Ellipsis3Border.Visibility = Visibility.Visible;
                break;
            }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.BugUiUserControl = ((EasyBugManager.BugUiControl)(target));

            #line 13 "..\..\..\..\..\Xaml\Control\Ui\BugUiControl.xaml"
                this.BugUiUserControl.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.BugUiControl_OnIsVisibleChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.StartTimeTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.SolveBugBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 4:
                this.EndTimeTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.UpdateNumberFrontTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.UpdateNumberTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.UpdateNumberBehindTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.BugNameButtonControl = ((EasyBugManager.ColorButtonControl)(target));
                return;

            case 9:
                this.BugNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.BackGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.BackButtonControl = ((EasyBugManager.ColorButtonControl)(target));
                return;

            case 12:
                this.RightCanvas = ((System.Windows.Controls.Canvas)(target));

            #line 233 "..\..\..\..\..\Xaml\Control\Ui\BugUiControl.xaml"
                this.RightCanvas.MouseEnter += new System.Windows.Input.MouseEventHandler(this.RightCanvas_OnMouseEnter);

            #line default
            #line hidden

            #line 234 "..\..\..\..\..\Xaml\Control\Ui\BugUiControl.xaml"
                this.RightCanvas.MouseLeave += new System.Windows.Input.MouseEventHandler(this.RightCanvas_OnMouseLeave);

            #line default
            #line hidden
                return;

            case 13:
                this.LineBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 14:
                this.RecordListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 15:
                this.IsShowBugReplyGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 16:
                this.RecordInputBoxControl = ((EasyBugManager.RecordInputBoxControl)(target));
                return;

            case 17:
                this.AnimationGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 18:
                this.ForegroundCanvas = ((System.Windows.Controls.Canvas)(target));
                return;
            }
            this._contentLoaded = true;
        }