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

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