private void TitleClickCallback() { // If a double click has been processed since the single click was // then we need to ignore the single click since it was really part of // a double click. if (!_shouldProcessSingleClick) { return; } _selectedByUser = true; Ribbon.EnsureCurrentControlStateCommitted(); Selected = true; // close any open tooltips Ribbon.CloseOpenTootips(); // TODO(josefl): This line should be able to be removed. // I'm leaving it because it is late in Office14 and I don't want to risk // regressing anything. It will not hurt to have it here too even though // it will be called as a sideeffect of setting Selected to true above. O14:637517 Ribbon.LastFocusedControl = null; #if PERF_METRICS PMetrics.PerfMark(PMarker.perfCUIRibbonTabSwitchWarmEnd); #endif }