private void BindMouseEvent() { if (this.Trigger == TriggerType.Click) { ElementEventHub.GetElementInstance($"main_{IdentityKey}") .Bind(this , nameof(HandleClick)); //ElementInfo.BindClickEvent($"main_{IdentityKey}", nameof(WillShowSubInfo), this); } else if (this.Trigger == TriggerType.Hover) { ElementEventHub.GetElementInstance($"main_{IdentityKey}") .Bind(this , nameof(HandleMouseOver) , nameof(OnMouseOut)); //ElementInfo.BindMouseOverEvent($"main_{IdentityKey}", nameof(WillShowSubInfo), this); //ElementInfo.BindMouseOutEvent($"main_{IdentityKey}", nameof(OnMouseOut), this); } else if (this.Trigger == TriggerType.ContextMenu) { ElementEventHub.GetElementInstance($"main_{IdentityKey}") .Bind(this , nameof(HandleContextMenu) ); //ElementInfo.BindContextMenuEvent($"main_{IdentityKey}", nameof(WillShowSubInfo), this, true); //ElementInfo.BindClickEvent($"main_{IdentityKey}", nameof(OnMouseOut), this); } }
private void BindMouseEvent() { ElementEventHub.GetElementInstance($"main_{IdentityKey}") .Bind(this , nameof(OnMouseOver) , nameof(OnMouseOut) ); }
private void BindingMouseEvent() { ElementEventHub.GetElementInstance($"LNParagraph_copyImage{IdentityKey}") .Bind(this , nameof(HandleCopy)); ElementEventHub.GetElementInstance($"paragraph_{IdentityKey}") .Bind(this , nameof(HandleClick)); }
protected override void OnAfterRender(bool firstRender) { base.OnAfterRender(firstRender); if (firstRender) { ElementEventHub.GetElementInstance(FirstInputID) .Bind(this , nameof(FirstPickerFocus)); } }
private void BindMouseEvent() { BodyEventHub.MouseUp += HandleMouseUp; ElementEventHub.GetElementInstance($"lefthandle_{IdentityKey}") .Bind(this , nameof(LeftHandleMouseDown)); ElementEventHub.GetElementInstance($"righthandle_{IdentityKey}") .Bind(this , nameof(RightHandleMouseDown)); }
protected override void OnAfterRender(bool firstRender) { base.OnAfterRender(firstRender); if (firstRender) { ElementEventHub.GetElementInstance(IdentityKey) .Bind(this , nameof(OnClick)); } }
private void BindMouseEvent() { if (MaskClosable) { ElementEventHub.GetElementInstance($"wrap_{IdentityKey}") .Bind(this , nameof(OnCancelCallback)); } ElementEventHub.GetElementInstance($"lnBtnClose_{IdentityKey}") .Bind(this , nameof(OnCancelCallback)); }
protected override void OnAfterRender(bool firstRender) { base.OnAfterRender(firstRender); if (firstRender) { ElementEventHub.GetElementInstance($"LnSelect_input_{IdentityKey}") .Bind(this , nameof(IconClicked)); ElementEventHub.GetElementInstance($"LnSelect_icon_{IdentityKey}") .Bind(this , nameof(IconClicked)); } }
public void BindMouseEvent() { if (MaskClosable) { ElementEventHub.GetElementInstance($"mask_{IdentityKey}") .Bind(this , nameof(OnMaskClick)); } if (Closable) { ElementEventHub.GetElementInstance($"closebtn_{IdentityKey}") .Bind(this , nameof(OnCloseBtnClick)); } }
protected override void OnAfterRender(bool firstRender) { base.OnAfterRender(firstRender); if (firstRender) { ElementEventHub.GetElementInstance("TestInfo") .Bind(this, nameof(OnClick) , nameof(MouseOver) , nameof(MouseDown) , nameof(MouseEnter) , nameof(MouseUp) , nameof(MouseMove) , nameof(MouseOut) , nameof(ContextMenu)); ElementEventHub.GetElementInstance("TestInfo1") .Bind(this, nameof(OnClick) , nameof(MouseOver1) , nameof(MouseDown1) , nameof(MouseEnter1) , nameof(MouseUp1) , nameof(MouseMove1) , nameof(MouseOut1) , nameof(ContextMenu1)); ElementEventHub.GetElementInstance("input1") .Bind(this , nameof(OnBlur) , nameof(OnChange) , nameof(OnFocus) , nameof(OnFocusIn) , nameof(OnFocusOut) , nameof(OnInput) , nameof(OnKeyDown) , nameof(OnKeypress) , nameof(OnKeyup) ); ElementEventHub.GetElementInstance("scrolltest") .Bind(this, nameof(OnScroll)); } }
private void BindMouseEvent() { ElementEventHub.GetElementInstance($"lnButton_{IdentityKey}") .Bind(this , nameof(OnElementClicked)); }
private void BindTitleClickEvent() { ElementEventHub.GetElementInstance($"YearBtn_{IdentityKey}") .Bind(this , nameof(OnTitleClicked)); }
private void BindEvent() { ElementEventHub.GetElementInstance($"Swtich_{IdentityKey}") .Bind(this , nameof(HandleOnClick)); }
private void BindMouseEvent() { ElementEventHub.GetElementInstance($"sider_trigger_{IdentityKey}") .Bind(this, nameof(InverseCollapseStatus)); }