| | |
| | | button.ButtonClickEvent -= ChildrenUpEvent;
|
| | | button.ButtonClickEvent += ChildrenUpEvent;
|
| | | }
|
| | | else if (view is ImageView)
|
| | | else if (view is ImageView || view is Button)
|
| | | {
|
| | | //自身也添加事件
|
| | | //为子控件添加事件
|
| | | view.MouseUpEventHandler -= ChildrenUpEvent;
|
| | | view.MouseUpEventHandler += ChildrenUpEvent;
|
| | | }
|
| | |
| | | /// </summary>
|
| | | /// <param name="view">子控件</param>
|
| | | /// <param name="chidrenBindMode">绑定模式</param>
|
| | | public void AddChidren(View view, ChidrenBindMode chidrenBindMode = ChidrenBindMode.BindEvent)
|
| | | public void AddChidren(View view, ChidrenBindMode chidrenBindMode)
|
| | | {
|
| | | base.AddChidren(view);
|
| | |
|