Skip to content

add horizontal scrolling to eventviewer#2361

Open
logangeorge01 wants to merge 2 commits intomicrosoft:mainfrom
logangeorge01:main
Open

add horizontal scrolling to eventviewer#2361
logangeorge01 wants to merge 2 commits intomicrosoft:mainfrom
logangeorge01:main

Conversation

@logangeorge01
Copy link

add support for shift+scroll horizontal scrolling in eventviewer

@logangeorge01
Copy link
Author

@microsoft-github-policy-service agree company="Microsoft"

Copy link
Member

@brianrob brianrob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just one improvement request below.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this should be cacheable so that you don't have to find it on each event.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a commit, let me know if this is what you meant by caching

Copy link
Member

@brianrob brianrob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is what I'm talking about. Let's see if we can optimize this just a bit more since we're going to go through this path a whole bunch during scrolling. Take a look below - we should be able to eliminate one of the null checks.

if (m_gridScrollViewer == null)
{
m_gridScrollViewer = FindVisualChild<ScrollViewer>((DependencyObject)sender);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
if (m_gridScroller == null)
{
return;
}
}

m_gridScrollViewer = FindVisualChild<ScrollViewer>((DependencyObject)sender);
}

if (m_gridScrollViewer != null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (m_gridScrollViewer != null)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments