-
Notifications
You must be signed in to change notification settings - Fork 1
/
MarkdownQuote.xaml.cpp
37 lines (30 loc) · 1.02 KB
/
MarkdownQuote.xaml.cpp
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
34
35
36
//
// MarkdownQuote.xaml.cpp
// Implementation of the MarkdownQuote class
//
#include "MarkdownQuote.xaml.h"
using namespace SnooDom;
using namespace Platform;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::UI::Xaml;
using namespace Windows::UI::Xaml::Controls;
using namespace Windows::UI::Xaml::Controls::Primitives;
using namespace Windows::UI::Xaml::Data;
using namespace Windows::UI::Xaml::Input;
using namespace Windows::UI::Xaml::Media;
using namespace Windows::UI::Xaml::Navigation;
// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236
MarkdownQuote::MarkdownQuote(Platform::String^ contents, Windows::UI::Xaml::Style^ style)
{
InitializeComponent();
auto textBlock = ref new TextBlock();
textBlock->Text = contents;
textBlock->Style = style;
content->Content = textBlock;
}
MarkdownQuote::MarkdownQuote(Windows::UI::Xaml::UIElement^ contents)
{
InitializeComponent();
content->Content = contents;
}