定期混合草图样式 [英] Sketch styles in regular blend
问题描述
我有一个客户要求我使用sketchflow pensil样式我该怎么做呢,
I have a client that has asked me to use the sketchflow pensil style how do i go about doing this,
谢谢
推荐答案
您需要在项目中添加几个文件。要查看我正在描述的结构,请创建一个与您正在处理的平台(WPF或SL)匹配的SketchFlow项目。
You will need to add a couple of files to your project. To see the structure I am describing, create a SketchFlow project that matches the platform you are working on (WPF or SL).
在该项目中,您将看到以下几点:
In that project you will see a couple of things:
* SketchStyles.xaml
* SketchStyles.xaml
*对Microsoft.Expression.Prototyping.SketchControls.dll的引用
* A reference to Microsoft.Expression.Prototyping.SketchControls.dll
* App .xaml将有一个mergeddictionaries部分,如下所示:
* App.xaml will have a mergeddictionaries section that looks like this:
< Application.Resources>
&NBSP;&NBSP;&NBSP; <! - 应在此处定义应用程序级别的资源范围。 - >
&NBSP;&NBSP;&NBSP; < ResourceDictionary>
&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP; < ResourceDictionary.MergedDictionaries>
&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP; < ResourceDictionary Source =" /Microsoft.Expression.Prototyping.SketchControls; component / ScrollViewerStyles.xaml" />
&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP; < ResourceDictionary Source =" /SilverlightPrototype1.Screens; component / SketchStyles.xaml" />
&NBSP;&NBSP;&NBSP; &NBSP;&NBSP;&NBSP; < /ResourceDictionary.MergedDictionaries>
&NBSP;&NBSP;&NBSP; < / ResourceDictionary>
< /Application.Resources>
<Application.Resources>
<!-- Resources scoped at the Application level should be defined here. -->
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Microsoft.Expression.Prototyping.SketchControls;component/ScrollViewerStyles.xaml"/>
<ResourceDictionary Source="/SilverlightPrototype1.Screens;component/SketchStyles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
要使样式在普通项目中运行,您需要在项目中复制这些内容。
To get the styles working in a normal project you would need to duplicate those things in your project.
这篇关于定期混合草图样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!