blob: ce7289cdf003d4c373f75fdea1d586322876ed37 [file] [log] [blame]
Nicolas Jager8a85e1f2016-08-15 15:11:06 -04001/**************************************************************************
2* Copyright (C) 2016 by Savoir-faire Linux *
3* Author: Jäger Nicolas <nicolas.jager@savoirfairelinux.com> *
4* *
5* This program is free software; you can redistribute it and/or modify *
6* it under the terms of the GNU General Public License as published by *
7* the Free Software Foundation; either version 3 of the License, or *
8* (at your option) any later version. *
9* *
10* This program is distributed in the hope that it will be useful, *
11* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13* GNU General Public License for more details. *
14* *
15* You should have received a copy of the GNU General Public License *
16* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17**************************************************************************/
18#pragma once
19
20#include "MessageTextPage.g.h"
21
22namespace RingClientUWP
23{
24namespace Views
25{
Nicolas Jager7bef1492016-09-14 11:23:29 -040026
27public ref class BubbleBackground sealed : IValueConverter {
28public:
29 virtual Object^ Convert(Object^ value, Windows::UI::Xaml::Interop::TypeName targetType, Object^ parameter, String^ language);
30 virtual Object^ ConvertBack(Object^ value, Windows::UI::Xaml::Interop::TypeName targetType, Object^ parameter, String^ language);
31 BubbleBackground();
32};
33
34public ref class BubbleHorizontalAlignement sealed : IValueConverter {
35public:
36 virtual Object^ Convert(Object^ value, Windows::UI::Xaml::Interop::TypeName targetType, Object^ parameter, String^ language);
37 virtual Object^ ConvertBack(Object^ value, Windows::UI::Xaml::Interop::TypeName targetType, Object^ parameter, String^ language);
38 BubbleHorizontalAlignement();
39};
40
Nicolas Jager8a85e1f2016-08-15 15:11:06 -040041public ref class MessageTextPage sealed
42{
43public:
44 MessageTextPage();
45 void updatePageContent();
Nicolas Jager7bef1492016-09-14 11:23:29 -040046 void scrollDown();
Nicolas Jager8a85e1f2016-08-15 15:11:06 -040047
48private:
49 void _sendBtn__Click(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
50 void _messageTextBox__KeyDown(Platform::Object^ sender, Windows::UI::Xaml::Input::KeyRoutedEventArgs^ e);
51 void sendMessage();
52};
53}
54}