TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Gaeddong E Fuka all
NA
4
2.6k
Problems with xaml binding to flowdocument
Nov 25 2012 5:34 AM
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 -_-
Reply
Answers (
0
)
how to create a Bar same as remote desktop's connection bar for an application
combobox binding