private void BindMouseEvent()
 {
     if (MaskClosable)
     {
         ElementInfo.BindClickEvent($"wrap_{IdentityKey}", nameof(OnCancelCallback), this, true);
     }
     ElementInfo.BindClickEvent($"lnBtnClose_{IdentityKey}", nameof(OnCancelCallback), this, true);
 }
Esempio n. 2
0
 public void BindMouseEvent()
 {
     if (MaskClosable)
     {
         ElementInfo.BindClickEvent($"mask_{IdentityKey}", nameof(OnMaskClick), this, true);
     }
     if (Closable)
     {
         ElementInfo.BindClickEvent($"closebtn_{IdentityKey}", nameof(OnCloseBtnClick), this, true);
     }
 }
Esempio n. 3
0
 private void BindMouseEvent()
 {
     if (this.Trigger == TriggerType.Click)
     {
         ElementInfo.BindClickEvent($"main_{IdentityKey}", nameof(WillShowSubInfo), this);
     }
     else if (this.Trigger == TriggerType.Hover)
     {
         ElementInfo.BindMouseOverEvent($"main_{IdentityKey}", nameof(WillShowSubInfo), this);
         ElementInfo.BindMouseOutEvent($"main_{IdentityKey}", nameof(OnMouseOut), this);
     }
     else if (this.Trigger == TriggerType.ContextMenu)
     {
         ElementInfo.BindContextMenuEvent($"main_{IdentityKey}", nameof(WillShowSubInfo), this, true);
         ElementInfo.BindClickEvent($"main_{IdentityKey}", nameof(OnMouseOut), this);
     }
 }
 private void BindingMouseEvent()
 {
     ElementInfo.BindClickEvent($"LNParagraph_copyImage{IdentityKey}", nameof(HandleCopy), this);
     ElementInfo.BindClickEvent($"paragraph_{IdentityKey}", nameof(HandleClick), this);
 }
 private void BindMouseEvent()
 {
     ElementInfo.BindClickEvent($"sider_trigger_{IdentityKey}", nameof(InverseCollapseStatus), this, true);
 }
Esempio n. 6
0
 private void BindMouseEvent()
 {
     ElementInfo.BindClickEvent($"lnButton_{IdentityKey}", nameof(OnElementClicked), this, true);
 }