Try it: Customize the appearance of the check mark in a SimpleCheckBox
It is easy to customize the appearance of a check mark in Microsoft Expression Blend by using the SimpleCheckBox control template.
To customize the check mark in a SimpleCheckBox
Draw a SimpleCheckBox on the artboard in Expression Blend.
Tip
The simple style controls are available under Simple Styles in the Styles category of the Assets panel. After you select a simple style control from the list, you can draw it on the artboard.
Right-click the check box in the Objects and Timeline panel, point to Edit Template, and then click Edit Current. If you do not want to change the SimpleStyles.xaml resource dictionary, you can click Edit a Copy instead of Edit Template, to create a new template and save it in the document. For more information about creating a copy, see Create a resource.
Tip
To exit the template-editing mode and return to the scope of your document: click Return scope to , which is above the object tree in the Objects and Timeline panel.
To return to template editing mode for an existing template: in the Objects and Timeline panel, right-click the object whose template you want to edit, point to Edit Template, and then click Edit Current.
In the editing scope of the control template, expand all of the nodes in the Objects and Timeline panel. Delete the CheckMark path object.
Double-click the Grid object to make it active, so that you can add child objects.
Draw a path into the Grid object by using the Pen tool in the Tools panel. You can modify the path by using the Direct Selection tool to adjust points on the path.
Tip
To zoom in on the artboard, you can use the Zoom text box at the bottom of the artboard, or you can use the scroll button on your mouse while holding down the CTRL key.
Tip
As an alternative to drawing a path element by using the Pen tool, you can use an art resource that is imported from Microsoft Expression Design, or an image file that has been added to your project.
When you deleted the CheckMark path element, the trigger that makes it appear and disappear was deleted as well. To recreate the trigger, click IsChecked = False in the Triggers panel. In the Objects and Timeline panel, select the new check mark element, and then under Appearance in the Properties panel, set the Visibility property to Collapsed.
Test your application (F5) to see the effects.
See also
Concepts
Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.