Windows Presentation Foundation Integration QuickStart

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies.
This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
To create client business applications using current Microsoft technologies, see patterns & practices' Prism.

This QuickStart demonstrates how to use Windows Presentation Foundation controls as Composite UI Application Block SmartParts by using the Windows Presentation Foundation integration layer for the Composite UI Application Block.

Prerequisites

To run the QuickStart, you need the Visual Studio 2010, NET Framework 3.5 and 4.0.

Building and Running the QuickStart

The QuickStart ships as source code, which means you must compile it before running it. This QuickStart does not require any additional setup.

To build and run the QuickStart

  1. Open the solution file WPFIntegration.sln.
  2. On the Build menu, click Rebuild Solution.
  3. Press F5 to run the QuickStart.

Overview

The QuickStart consists of a Shell form that contains two DeckWorkspaces that support WPF controls. When the Shell is loaded, two SmartParts are displayed:

  • EmployeeView. This is a Windows Forms control that shows details for an employee.
  • OrgChartView. This is a Windows Presentation Foundation control that displays a graphical organization chart.

Ff699244.55b53b24-50d7-4df9-9370-420ad437773c(en-us,PandP.10).png

Figure 1

The QuickStart shows a Windows Presentation Foundation SmartPart and a Windows Forms SmartPart interacting with each other.

When you click a position in the organization chart, the OrgChartView view raises an event that is handled by the EmployeeView view and displays the employee information for the selected position.

Related Software Factory Assets