/// <summary>
 /// 向父控件回调事件
 /// </summary>
 /// <param name="sender">信息发送者</param>
 /// <param name="ms">消息类型</param>
 /// <param name="data">数据</param>
 /// <returns></returns>
 protected object ToCallBackParent(object sender, MouseState ms, XObjectData data = null)
 {
     if (CallBackFunction != null)
     {
         return(CallBackFunction(sender, ms, data));
     }
     return(null);
 }
 /// <summary>
 /// 子控件事件回调处理
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="ms"></param>
 protected virtual object ChileEventCallBack(Object sender, MouseState ms, XObjectData data = null)
 {
     ToCallBackParent(sender, ms, data);
     if (ms == MouseState.XClearControl)
     {
         ClearChildControled();
     }
     return(null);
 }
        /// <summary>
        /// 发送属性值改变事件(如果是其他属性值的改变则frontValue 则填写要被改变的属性的Title值)
        /// </summary>
        /// <param name="PropertyName">属性值变化的属性名称</param>
        /// <param name="frontValue">属性目前的值</param>
        /// <param name="newValue">属性要改变的值</param>
        /// <returns></returns>
        protected object ToSenderPropertyValueChangeEvent(string PropertyName, object frontValue, object newValue)
        {
            ///声明数据
            XObjectData data = new XObjectData(newValue);

            ///要被修改的属性名称
            data.additional_Information = PropertyName;
            ///要被修改的属性目前的值
            data.state = frontValue;
            ///接受返回数据
            object redata = ToCallBackParent(MouseState.XPropertyValueChange, data);

            ///返回结果
            return(redata);
        }