Uploaded image for project: 'MediaPortal 2'
  1. MediaPortal 2
  2. MP2-837

Focused item sometimes not saved and restored correctly if a dialog causes a screen change

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.3
    • 2.2.3
    • Skin Engine
    • None

    Description

      <p>The currently focused item is stored in a call to FrameworkElement.SaveUIState when a screen closes and is then restored when navigating back to that screen with a call to FrameworkElement.RestoreUIState.&nbsp;However when a dialog is shown, the underlying screen loses focus, so no longer has a&nbsp;focused element, if the dialog then&nbsp;by pushes&nbsp;a new&nbsp;WorkflowNavigationContext, sometimes focus is not restored to the screen before the call to SaveUIState and hence there is no focused element&nbsp;to save and restore.</p>

      <p>We should try and detect this case and save and restore&nbsp;the element that had focus before the dialog was shown.</p>

      Attachments

        Activity

          People

            brownard Brownard
            brownard Brownard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: