/// <summary> /// Handles the MouseEnterElement event of the SearchResultGrid control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:Infragistics.Win.UIElementEventArgs"/> instance containing the event data.</param> private void SearchResultGrid_MouseEnterElement(object sender, UIElementEventArgs e) { try { if (e.Element != null) { UltraGridColumn col = e.Element.GetContext(typeof(UltraGridColumn)) as UltraGridColumn; UltraGridRow row = e.Element.GetContext(typeof(UltraGridRow)) as UltraGridRow; if (e.Element.GetType().Equals(typeof(Infragistics.Win.UltraWinGrid.MergedCellUIElement))) { this.toolTipMessage = this.SearchResultGrid.Rows[row.Index].Cells[this.searchData.GroupColumn.ColumnName].Value.ToString(); this.SearchEngineToolTip.SetToolTip(SearchResultGrid, this.toolTipMessage); } else { if (col != null && row != null) { ////msg = this.ultraGrid1.Rows[row.Index].Cells[col.Index].Value.ToString(); ////GdocEventEngineToolTip.SetToolTip(ultraGrid1, msg); this.SearchResultGrid.DisplayLayout.Override.TipStyleCell = TipStyle.Show; } } } } catch (SoapException ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } }
/// <summary> /// Raises the <see cref="LogicalChildAdded"/> event. /// </summary> /// <param name="e">The <see cref="EventArgs"/> instance /// containing the event data.</param> protected virtual void OnLogicalChildAdded(UIElementEventArgs e) { RaiseEvent(LogicalChildAdded, this, e); if (!DesignMode) { Layout(RenderSize); } }
/// <summary> /// Handles the MouseLeaveElement event of the SearchResultGrid control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="T:Infragistics.Win.UIElementEventArgs"/> instance containing the event data.</param> private void SearchResultGrid_MouseLeaveElement(object sender, UIElementEventArgs e) { try { this.SearchEngineToolTip.SetToolTip(SearchResultGrid, string.Empty); } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.Display, this.ParentForm); } }
/// <summary> /// Apply the settings when a caption element is added /// </summary> /// <param name="sender">the sender</param> /// <param name="e">the UI Element event arguments</param> private void OnCaptionAdded(object sender, UIElementEventArgs e) { this.captionSettings.ApplySettings(e.UIElement, this.Settings, null, true); }
// Invoke the Changed event; called whenever list changes: protected virtual void OnItemRemovedToQuickAccessToolbar(UIElementEventArgs e) { if (ItemRemovedToQuickAccessToolbar != null) ItemRemovedToQuickAccessToolbar(this, e); }
private void CheckBoxElementClick(Object sender, UIElementEventArgs e) { var checkBoxUIElement = (CheckBoxUIElement)e.Element; var columnHeader = (Infragistics.Win.UltraWinGrid.ColumnHeader)checkBoxUIElement.GetAncestor(typeof(HeaderUIElement)).GetContext(typeof(Infragistics.Win.UltraWinGrid.ColumnHeader)); columnHeader.Tag = checkBoxUIElement.CheckState; var headerUIElement = checkBoxUIElement.GetAncestor(typeof(HeaderUIElement)) as HeaderUIElement; var rowsCollection = headerUIElement.GetContext(typeof(RowsCollection)) as RowsCollection; if (_CLICKED != null) _CLICKED(this, new HeaderCheckBoxEventArgs(columnHeader, checkBoxUIElement.CheckState, rowsCollection)); }
/// <summary> /// This method is invoked when the user clicks on the button element that we added to the UltraLabel. /// It fires our EmbeddedButtonClicked event so that any interested parties can be informed of the click. /// </summary> protected virtual void OnEmbeddedButtonClicked( object sender, UIElementEventArgs e ) { if( this.EmbeddedButtonClicked != null ) this.EmbeddedButtonClicked( sender, e ); }