summaryrefslogtreecommitdiff
path: root/cpp/test/WinRT/TestSuite/MainPage.xaml.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-11-26 21:55:01 +0100
committerJoe George <joe@zeroc.com>2015-10-27 10:30:08 -0400
commitf30e6b359b4d45327bfeed94869dd5e66105f8ce (patch)
tree708cf81339a6d7bdd7f1887c7693714d3fe26f7f /cpp/test/WinRT/TestSuite/MainPage.xaml.cpp
parentChanges to support RHEL5 (diff)
downloadice-f30e6b359b4d45327bfeed94869dd5e66105f8ce.tar.bz2
ice-f30e6b359b4d45327bfeed94869dd5e66105f8ce.tar.xz
ice-f30e6b359b4d45327bfeed94869dd5e66105f8ce.zip
Visual Studio 2013 support
Diffstat (limited to 'cpp/test/WinRT/TestSuite/MainPage.xaml.cpp')
-rw-r--r--cpp/test/WinRT/TestSuite/MainPage.xaml.cpp4
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));
}