在Expression Blend 3中快速创建图像笔刷

August 25th, 2009 § 1

之前在Blend中创建一个图像笔刷需要很多步骤。Blend3中对此进行了改进。

复制一个图像到剪贴板

粘贴图像到Resource Dictionary

打开Blend 3 并选择 Resource标签,选择可定义图像笔刷的资源区域。右键点击App.xaml文件并选择粘贴Paste。

clipblend-paste-resource

增加下列xaml代码到App.xaml文件中Application.Resources部分

  1. <ImageBrush x:Key="Image" ImageSource="Image.jpg"/>
  2. <!-- Image.jpg为图像文件名 -->

Popularity: 2% [?]

Where Am I?

You are currently browsing entries tagged with brush at Mdong·s Space (小气的神).

Switch to our mobile site