Window Template Parts

In Microsoft Expression Blend, you can view and edit template parts by creating a new template (for example, click the C1Window control to select it and choose Object | Edit Template | Edit a Copy). Once you've created a new template, the parts of the template will appear in the Parts window:

 

 

Note that you may have to select the ControlTemplate for its parts to be visible in the Parts window.

In the Parts window, you can double-click any element to create that part in the template. Once you have done so, the part will appear in the template and the element's icon in the Parts pane will change to indicate selection.

Template parts available in the C1Window control include:

 

Name

Type

Description

Close

Button

Represents a button control used to close the dialog window.

Content

FrameworkElement

This element contains the window's content.

Drag

FrameworkElement

This element listens for mouse events to drag the window.

Maximize

Button

Represents a button control used to maximize the dialog window.

Minimize

Button

Represents a button control used to minimize the dialog window.

Resize

Border

Draws a border, background, or both around another object. Here the border is used to resize the control.

Root

FrameworkElement

The root element of the template.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.