blob: aa6fc0c45972ff906bc2a2535cba3462019f251a [file] [log] [blame]
atraczyk746f3762017-02-28 14:12:51 -05001/**************************************************************************
2* Copyright (C) 2016 by Savoir-faire Linux *
3* Author: Traczyk Andreas <traczyk.andreas@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
20using namespace Windows::UI::Xaml::Controls;
21using namespace Windows::UI::Xaml::Interop;
22using namespace Windows::UI::Xaml;
23using namespace Windows::UI::Xaml::Media;
24using namespace Windows::UI::Xaml::Interop;
25using namespace Windows::UI::Xaml::Documents;
26using namespace Platform;
27
28#include "pch.h"
29#include <regex>
30
31namespace RingClientUWP
32{
33
34namespace UserAndCustomControls {
35
36public ref class TextBlockExtension sealed : public Control
37{
38private:
39 static DependencyProperty^ FormattedTextProperty;
40
41public:
42 TextBlockExtension::TextBlockExtension();
43
44 static String^ GetFormattedText(DependencyObject^ obj) {
45 return (String^)obj->GetValue(FormattedTextProperty);
46 };
47 static void SetFormattedText(DependencyObject^ obj, String^ value) {
48 obj->SetValue(FormattedTextProperty, value);
49 }
50
51};
52
53}
54}