/// <summary>
 /// Updates the ActiveCell when the right mouse button is pressed
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Cell_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
 {
     var pos = e.GetPosition((IInputElement)sender);
     var cell = (CellControl)sender;
     var parent = (CellsPanel)cell.Parent;
     var data = parent.Row.Data;
     if (FormulaGrid.ActiveCell != cell.Cell)
     {
         FormulaGrid.ActiveCell = cell.Cell;
         Trace.TraceInformation("Cell_MouseRightButtonDown: ({0}, {1}), ActiveCell: {2}", pos.X, pos.Y, FormulaGrid.ActiveCell);
     }
     _rightClickCell = cell;
 }
 public ActionCellCustomCommandEventArgs(Int32 bodyRowIndex, CellControlBase actionCellControl)
 {
     BodyRowIndex      = bodyRowIndex;
     ActionCellControl = actionCellControl;
 }
 /// <summary>
 /// Updates the ActiveCell when the right mouse button is pressed
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void HeaderCell_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
 {
     var pos = e.GetPosition((IInputElement)sender);
     var cell = (HeaderCellControl)sender;
     var parent = (CellsPanel)cell.Parent;
     Trace.TraceInformation("HeaderCell_MouseRightButtonDown: ({0}, {1}), ActiveCell: {2}", pos.X, pos.Y, FormulaGrid.ActiveCell);
     _rightClickCell = cell;
     RaisePropertyChanged("IsFixedColumn");
 }
 public ActionCellCustomBoundEventArgs(ActionCell ac, CellControlBase actionCellControl)
 {
     ActionCell        = ac;
     ActionCellControl = actionCellControl;
 }