Inheritance: Windows.UI.Xaml.Controls.UserControl, ILinkRegister
 /// <summary>
 /// Called when we should show the content
 /// </summary>
 /// <param name="post"></param>
 public void OnPrepareContent(Post post)
 {
     m_markdownBlock = new MarkdownTextBlock();
     m_markdownBlock.OnMarkdownLinkTapped += MarkdownBlock_OnMarkdownLinkTapped;
     m_markdownBlock.OnMarkdownReady += MarkdownBox_OnMarkdownReady;
     m_markdownBlock.Markdown = post.Selftext;
     ui_contentRoot.Children.Add(m_markdownBlock);            
 }
 /// <summary>
 /// Called when we should show the content
 /// </summary>
 /// <param name="post"></param>
 public async void OnPrepareContent(Post post)
 {
     // Since some of this can be costly, delay the work load until we aren't animating.
     await Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Low, () =>
     {
         m_markdownBlock = new MarkdownTextBlock();
         m_markdownBlock.OnMarkdownLinkTapped += MarkdownBlock_OnMarkdownLinkTapped;
         m_markdownBlock.OnMarkdownReady += MarkdownBox_OnMarkdownReady;
         m_markdownBlock.Markdown = post.Selftext;                
         ui_contentRoot.Children.Add(m_markdownBlock);
     });     
 }
        /// <summary>
        /// Called when we should destroy the content
        /// </summary>
        public void OnDestroyContent()
        {
            // Clear the markdown
            if(m_markdownBlock != null)
            {
                m_markdownBlock.OnMarkdownReady -= MarkdownBox_OnMarkdownReady;
                m_markdownBlock.OnMarkdownLinkTapped -= MarkdownBlock_OnMarkdownLinkTapped;
            }
            m_markdownBlock = null;

            // Clear the UI
            ui_contentRoot.Children.Clear();
        }
 public EditableProperty(MarkdownTextBlock instance, PropertyInfo property)
 {
     this.instance = instance;
     this.property = property;
     this.CanRead = property.CanRead;
     this.CanWrite = property.CanWrite;
     this.GetMethod = property.GetGetMethod();
     this.Name = property.Name;
     this.value = ConvertToString(property.GetValue(instance));
 }