Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

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

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.

Ff649753.scsf-qs-wpf-01(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 on 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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.