Forum guidelines
  • Home
  • »
  • WPF
  • »
  • Problems with xaml binding to flowdocument
AuthorQuestion
Problems with xaml binding to flowdocument
Posted By Gaeddong E Fuka all on 25 Nov 2012
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.IO;
using System.Windows.Markup;
namespace simple
{
  /// <summary>
  /// Interaction logic for MainWindow.xaml
  /// </summary>
  public partial class MainWindow : Window
  {
  public MainWindow()
  {
  InitializeComponent();
 
  }
  void LoadFlowDocumentReaderWithXAMLFile()
 
  {
  FlowDocument content = null;
  // Open the file that contains the FlowDocument...
  FileStream xamlFile = new FileStream("Page1.xaml", FileMode.Open, FileAccess.Read);
  // and parse the file with the XamlReader.Load method.
  content = XamlReader.Load(xamlFile) as FlowDocument;
  // Finally, set the Document property to the FlowDocument object that was
  // parsed from the input file.
  FlowDocRdr.Document = content;
 
}
 

  }


No Error on this code

but the Page1.xaml can't Load to FlowDocRdr(flowdocumentreader) expression to nothing

so
May I used in the canvas that flowdocumentreader
or not -_-;;?

don't use the opendialog just directly open that xaml file
How can Load - ? - )teach me on now amon
-_-dont care about me just -_-I need the code -_-
 -_-use the money and make a club on social c# club (vitality)-_-or etc... -_-
-_-what ever help me -_-



SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.