diff options
author | Jose <jose@zeroc.com> | 2013-11-26 21:55:01 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2013-11-26 21:55:01 +0100 |
commit | d10a2cb6de091828703cef138e65faa4787c42e5 (patch) | |
tree | 55d309990da561cd4362fa2b0b9f8b774db5bd38 /cpp/demo/Glacier2/winrt/chat/ChatView.xaml.cpp | |
parent | Fixed OpenSSL deprecation warning on OS X (diff) | |
download | ice-d10a2cb6de091828703cef138e65faa4787c42e5.tar.bz2 ice-d10a2cb6de091828703cef138e65faa4787c42e5.tar.xz ice-d10a2cb6de091828703cef138e65faa4787c42e5.zip |
Visual Studio 2013 support
Diffstat (limited to 'cpp/demo/Glacier2/winrt/chat/ChatView.xaml.cpp')
-rw-r--r-- | cpp/demo/Glacier2/winrt/chat/ChatView.xaml.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/demo/Glacier2/winrt/chat/ChatView.xaml.cpp b/cpp/demo/Glacier2/winrt/chat/ChatView.xaml.cpp index d34a52a4ee1..af3a83ac052 100644 --- a/cpp/demo/Glacier2/winrt/chat/ChatView.xaml.cpp +++ b/cpp/demo/Glacier2/winrt/chat/ChatView.xaml.cpp @@ -42,7 +42,11 @@ ChatView::appendMessage(String^ message) { messages->Text += message + L"\n"; messages->UpdateLayout(); +#if (_WIN32_WINNT > 0x0602) + Scroller->ChangeView(nullptr, Scroller->ScrollableHeight, nullptr); +#else Scroller->ScrollToVerticalOffset(Scroller->ScrollableHeight); +#endif } void chat::ChatView::inputKeyDown(Platform::Object^ sender, Windows::UI::Xaml::Input::KeyRoutedEventArgs^ e) |