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

之前在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为图像文件名 -->

相关文章

Posted: August 25th, 2009
Categories: Silverlight & Expression Studio
Tags: , ,
Comments: 1 Comment.
Comments
Comment from an9 - 08/26/2009 at 08:42

技术贴,我路过。 :lala

Reply













:| :x :wow :what :twisted: :sad :roll: :o :mm :lala :idea: :ho :ha :evil: :arrow: :aa :D :55 :) :( :!: 8)