.NET
gui_wpf.txt
Associated article: Embed Custom GUIs in WPF
Tags: .NET
Published source code accompanying the article by Eric Bergman-Terrell in which he discusses the FlowDocument class in the Windows Presentation Framework--the graphics and user interface engine in .NET 3.0. Also see GUI_WPF.ZIP.
Embed Custom GUIs in WPF FlowDocuments
by Eric Bergman-Terrell
Listing One
// Convert UserControls into PlaceholderControls in the xaml markup.
public static string ReplaceControlsWithPlaceholders(string xaml,
TextPointer start, TextPointer end)
{
string modifiedMarkup = xaml;
// Get a list of UserControl Name attribute values ...


