xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="FlowDocReader Load/Save Sample" Width="640" Height="480">
//File:Window.xaml.cs
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Windows.Forms;
using System.IO;
using System.Windows.Markup;
namespace WpfApplication1
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
void LoadFile(Object sender, RoutedEventArgs args)
{
Console.WriteLine("load");
}
void SaveFile(Object sender, RoutedEventArgs args)
{
Console.WriteLine("save");
}
void Clear(Object sender, RoutedEventArgs args) { FlowDocRdr.Document = null; }
void Exit(Object sender, RoutedEventArgs args) { this.Close(); }
}
}