index > Windows Presentation Foundation ("Avalon") > FlowDocumentPageViewer find text

FlowDocumentPageViewer find text

Hello I'm trying to found a text in a FlowDocumentPageViewer Control when a button fire event. I've a textbox, a button and a FlowDocumentPageViewer, and the idea is to complete a text, press the button and search that word in the FlowDocument.

Any idea of how to do that?

Thanks a lot !!!

Euclidez

you could traverse the visual tree and populate the search textbox and then get the FindNextButton.

The search is then performed through code as follows.

AutomationPeer ap = UIElementAutomationPeer.CreatePeerForElement(findNext);

IInvokeProvider iip = (IInvokeProvider)ap.GetPattern(PatternInterface.Invoke);

iip.Invoke();

HTH

lester - MSFT
reply 2

You can use google to search for other answers

 

More Articles

• my experiences using WPF in a live environment
• ItemsControl + FishEyePanel
• Bug or Feature : Behavior of OneWay bindings (July CTP)
• how to change ComboBox selection color
• MouseMove event under children of a parent.
• how to print a document from print dialog
• Menu items disabled when setting a command
• Help: RC1 ListView Memory Leak
• About event handler of overlay controls
• How can I control the internal WebBrowser??
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Window shadow
• LinearGradientBrush and gamma
• Referencing components.....
• How to handle a collection of Words in a
• Populating TreeView with xml file in c#?
• Healthcare application demo
• Applying styles at runtime
• Show page in new window with WBA
• XmlNamespaceMapping queries....
• Access sub-properties in <Setter/>
• Glyphs.FontUri and installed font files
• Data Binding - SetBinding destroys Valid
• Problem for report Viewer
• Changing DataTemplate programmatically
• Opening .xaml file using ImageBrush in IE

Hot Articles

• Custom Control - Generic.baml file not g
• Data Binding: How to bind a group of Rad
• Binding to frame's Content property
• I am not able to install Orcas Technolog
• Dual Monitors .. slow
• Is it possible to add Calendar and popup
• Handling Command in Page vs Window
• outlook look and field control using wpf
• Render buttons without border
• Window Management
• Loaded event order reversed in RC1
• The best way to draw RGB array in WPF
• Change the image dynamically from the St
• Capturing events and dynamically created
• WPF in Vista OS applications?

Recommend Articles

• XBAP's and firewalls
• Slow ZIndex change?
• TextBlock Style in a Grid
• Why Avi play failed when i change the pa
• Change order in Storyboard animation
• Controling RichTextBox elements' position
• Combining (Composing) Images with WPF
• RC1 BUG: Extending TextBoxBase
• XBAP Session ID
• DP of type BindingBase and XAML
• Where can i get information about Attrib
• Why can't I freeze BitmapImage ?
• Design question (data binding) -- sugges
• Custom EnumConverter not invoked at desi
• Converting a collection to comma seperat