summaryrefslogtreecommitdiff
path: root/cpp/demo/Glacier2/winrt/chat/ChatView.xaml.h
blob: 15de1de2aeaa479b0f9d05ea75c83a7b712129c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// ChatView.xaml.h
// Declaration of the ChatView class
//

#pragma once

#include "ChatView.g.h"

namespace chat
{
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public ref class ChatView sealed
    {
    public:
        
        ChatView();

        void setError(Platform::String^ err);

        void appendMessage(Platform::String^ message);

    protected:
        
        virtual void OnNavigatedTo(Windows::UI::Xaml::Navigation::NavigationEventArgs^ e) override;
        
    private:
        
        void inputKeyDown(Platform::Object^ sender, Windows::UI::Xaml::Input::KeyRoutedEventArgs^ e);
    };
}