Пример #1
0
 private void FhemService_FhemObjectNameEditingStart(object sender, FhemObjectViewModelEventArgs e)
 {
     //-- Keep the last focused element in mind
     m_lastFocusedElementBeforeRenaming = Keyboard.FocusedElement;
 }
Пример #2
0
        //-- Fields
        #endregion
        //---------------------------------------------------------------------
        #region Event Handling

        private void FhemService_FhemObjectNameEditingEnd(object sender, FhemObjectViewModelEventArgs e)
        {
            //-- Restore the focus
            m_lastFocusedElementBeforeRenaming?.Focus();
        }