Skip to content

Loaded -= _OnLoaded; This line of code seems to cause problems in some cases #109

@Jimmy-drod

Description

@Jimmy-drod

private void _OnLoaded(object sender, RoutedEventArgs e)
{
// removed loaded handler to prevent duplicate subscribing
Loaded -= _OnLoaded;

Assume that a dxdo:DocumentGroup contains two dxdo:DocumentPanel, and continue to assume that NLogViewer is placed under one of the dxdo:DocumentPanels. Switching to another dxdo:DocumentPanels will trigger _OnUnloaded of NLogViewer. Then switching back will cause _OnLoaded to no longer be triggered because of the above code Loaded -= _OnLoaded;, so the log will no longer be displayed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions