Код: Выделить всё
using System.IO;
using System.Windows;
using System.Windows.Documents;
using System.Windows.Markup;
namespace WpfApplication1
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
FileStream fs = new FileStream("test.xaml", FileMode.Open, FileAccess.Read);
FlowDocument content = XamlReader.Load(fs) as FlowDocument;
richTextBox1.Document = content;
}
}
}
Код: Выделить всё
Код: Выделить всё
I am an XAML-dokument.
Подробнее здесь: https://stackoverflow.com/questions/797 ... ram-starts
Мобильная версия