Herdo / SolutionStartPage

Solution Start Page for Visual Studio 2015 and 2017
31 stars 15 forks source link

Add Scrolling to Start Page #10

Closed modulexcite closed 7 years ago

modulexcite commented 8 years ago

Hi,

Thank you @Herdo for the extension. You rock! Would it be possible to add mouse/keyboard scrolling on the start page? If possible, can you also add a divider between each group?

Herdo commented 7 years ago

Turns out that Visual Studio is hosting the entire start page already inside a ScrollViewer. Therefore, the ScrollViewer defined in the views won't work.

modulexcite commented 7 years ago

Thanks for your response. Not sure if I understand this, if it is defined in the scrollviewer then why can't scroll using the mouse wheel? Am I missing something?


Thanks


From: Stefan Over notifications@github.com Sent: Friday, April 14, 2017 12:40:21 PM To: Herdo/SolutionStartPage Cc: modulexcite; Author Subject: Re: [Herdo/SolutionStartPage] Add Scrolling to Start Page (#10)

Closed #10https://github.com/Herdo/SolutionStartPage/issues/10 via 6518bc5https://github.com/Herdo/SolutionStartPage/commit/6518bc5826ef070bb6b5af1db1f50e364c4e12a1.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Herdo/SolutionStartPage/issues/10#event-1043520904, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMI8L7Qjeb9-Ukzb5Uy6xZkaVCHhqy6qks5rv6F1gaJpZM4Ja7-4.

Herdo commented 7 years ago

@modulexcite - this image will explain it a little bit better than plain words can: grafik

The red part is the top-most element of the primary window content.

This one holds a ScrollViewer (blue part). I guess the intention behind this ScrollViewer is, that any window content might not know the available size, therefore VS provides a top-most ScrollViewer, so that the user can always scroll the content required into view.

The green part is the Solution Start Page extension.

The black part shows the primary contents: the default MRU list, open project, create new project etc and the Solution Page Control on the right side, showing the grouped solutions. The SolutionPageControl hosted another ScrollViewer, which then catches all mouse scrolls.

After finding out that there's another (blue one) ScrollViewer around the whole start page, I remembered the number 1 rule for WPF development:

Never ever put a ScrollViewer inside another ScrollViewer.