The Resources panel

The Resources panel, shown in Figure 2-57, contains a list of all resources of your application. Remember the ResourceDictionaryl.xaml file you created? It shows up in this list, and inside of it, the Brushl resource color gradient you created is shown. You can use the Resources panel to actually apply the resources, which you'll do now by following these steps:

1. Select the Rectangle tool and create a Rectangle in the workspace.

Properties Resources Data Projects

Ï x

Ss

T App.xaml

A ▼ ' MainControt.xaml

► K [UserControl]

■ [Rectangle]

Figure 2-57. The Resources panel, which contains all resources available to your project, including the ResourceDictionary you created earlier

Figure 2-57. The Resources panel, which contains all resources available to your project, including the ResourceDictionary you created earlier

2. On the Resources panel, click the ResourceDictionary1 arrow so that the Brushl custom gradient is shown, as in Figure 2-57.

3. Click and drag Brushl to your new Rectangle in the workspace, and let go.

4. Blend will now ask you what property you want to apply Brushl to; click Fill.

The Brushl gradient will now be applied to your Rectangle.

0 0

Post a comment

  • Receive news updates via email from this site