diff options
Diffstat (limited to 'cpp/test/WinRT/TestSuite/MainPage.xaml.cpp')
-rw-r--r-- | cpp/test/WinRT/TestSuite/MainPage.xaml.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp b/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp index a369e3dbda9..0250d115044 100644 --- a/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp +++ b/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp @@ -48,7 +48,11 @@ printToConsoleOutput(const std::string& message) { output->Text += msg; output->UpdateLayout(); +#if (_WIN32_WINNT > 0x0602) + scroller->ChangeView(nullptr, scroller->ScrollableHeight, nullptr); +#else scroller->ScrollToVerticalOffset(scroller->ScrollableHeight); +#endif }, CallbackContext::Any)); } |