Beispiel #1
0
        private void OnComponentClick(AOMEmail aOMEmail)
        {
            EmailGrid.Visibility = Visibility.Visible;
            btnContent           = "Save!!";
            emailClsHolder       = new AOMEmail();
            emailClsHolder       = aOMEmail;

            cbBcc.IsChecked       = true;
            cbCc.IsChecked        = true;
            tboxEmailTo.Text      = aOMEmail.Email.To.ToString();
            tboxEmailCc.Text      = aOMEmail.Email.CC.ToString();
            tboxEmailBcc.Text     = aOMEmail.Email.Bcc.ToString();
            tboxEmailSubject.Text = aOMEmail.Email.Subject;
            string flowDoc = markupConverter.ConvertHtmlToXaml(aOMEmail.Email.Body.ToString());

            rtbEditor.Document = (FlowDocument)XamlReader.Parse(flowDoc);
        }
 public void convertHTMLToXAML(object sender, RoutedEventArgs e)
 {
     myTextBox.Text = markupConverter.ConvertHtmlToXaml(myTextBox.Text);
     MessageBox.Show("Content Conversion Complete!");
 }