atraczyk | 746f376 | 2017-02-28 14:12:51 -0500 | [diff] [blame^] | 1 | /**************************************************************************
|
| 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 |
|
| 20 | using namespace Windows::UI::Xaml::Controls;
|
| 21 | using namespace Windows::UI::Xaml::Interop;
|
| 22 | using namespace Windows::UI::Xaml;
|
| 23 | using namespace Windows::UI::Xaml::Media;
|
| 24 | using namespace Windows::UI::Xaml::Interop;
|
| 25 | using namespace Windows::UI::Xaml::Documents;
|
| 26 | using namespace Platform;
|
| 27 |
|
| 28 | #include "pch.h"
|
| 29 | #include <regex>
|
| 30 |
|
| 31 | namespace RingClientUWP
|
| 32 | {
|
| 33 |
|
| 34 | namespace UserAndCustomControls {
|
| 35 |
|
| 36 | public ref class TextBlockExtension sealed : public Control
|
| 37 | {
|
| 38 | private:
|
| 39 | static DependencyProperty^ FormattedTextProperty;
|
| 40 |
|
| 41 | public:
|
| 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 | } |