<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8" /><META NAME="save" CONTENT="history" /><title xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt">Brush 示例</title><META NAME="Description" CONTENT="此示例演示如何用纯色、渐变、图像以及绘图进行绘制。它演示如何使用所有画笔共有的功能,如 P:System.Windows.Media.Brush.Transform、P:System.Windows.Media.Brush.RelativeTransform 和 P:System.Windows.Media.Brush.Opacity 属性。此示例还演示如何对 T:System.Windows.Media.SolidColorBrush 和 T:System.Windows.Media.Grad ..."></META><META NAME="MS.LOCALE" CONTENT="en-us" /><style>
body
{font-family:Verdana;font-size:medium;}
div#mainSection, div#header
{font-size:70%;width: 100%;}
div#mainBody
{font-size:90%;}
div#mainSection div table
{font-size: 100%;text-align: left;}
span#nsrTitle
{color:#003399;font-size:90%;font-weight:600;}
div#header
{background-color:#D4DFFF;}
.heading
{font-size:120%;color:#003399;}
.subHeading
{font-size:100%;margin-bottom:4;}
li
{margin-top:-2;margin-bottom:3;}
p
{margin-top:10;margin-bottom:5;}
div.tableSection p
{margin-top:1;margin-bottom:4;}
div#mainSection table th
{background-color:#EFEFF7;color:#000066;text-align:left;}
div#mainSection table td
{background-color:#F7F7FF;}
div#mainSection table
{margin-top:5px;margin-bottom: px;}
</style></head><body><div id="header"><table width="100%" id="topTable"><tr id="headerTableRow2" xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt"><td align="left"><span id="nsrTitle">Brush 示例</span></td></tr></table></div><div id="mainSection"><div id="mainBody"><br /><font color="DarkGray">[This readme is a partial copy of the sample's topic in the SDK documentation.]</font><br /><div class="introduction"><p xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt">此示例演示如何用纯色、渐变、图像以及绘图进行绘制。它演示如何使用所有画笔共有的功能,如 Transform、RelativeTransform 和 Opacity 属性。此示例还演示如何对 SolidColorBrush 和 GradientBrush 对象进行动画处理。</p><p xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt">此示例演示 Windows Presentation Foundation (WPF) 的特定功能,因此未遵循应用程序开发的最佳做法。有关 Windows Presentation Foundation (WPF) 和 Microsoft .NET Framework 应用程序开发的最佳做法的全面介绍,请相应地参考以下主题:</p><p xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt">辅助功能 - 辅助功能最佳方案</p><p xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt">安全 - Windows Presentation Foundation 安全性</p><p xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt">本地化 - WPF 全球化和本地化概述</p></div><h1 class="heading" xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt"><span onclick="ExpandCollapse(sectionToggle0)" style="cursor:default;" onkeypress="ExpandCollapse_CheckKey(sectionToggle0, event)" tabindex="0">生成示例</span></h1><div id="sectionSection0" class="section"><ul xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt"><li><p>
安装 Windows 软件开发工具包 (SDK) 并打开其生成环境命令窗口。在“开始”菜单上,指向“所有程序”、“Microsoft Windows SDK”,然后单击“CMD Shell”。
</p></li><li><p>
将示例(通常位于软件开发工具包 (SDK) 文档中)下载到您的硬盘。
</p></li><li><p>
若要从生成环境命令窗口生成示例,请转到示例的源目录。在命令提示符处,键入 MSBUILD。
</p></li><li><p>
若要在 Microsoft Visual Studio 中生成示例,请加载示例解决方案或项目文件,然后按 Ctrl+Shift+B。
</p></li></ul></div><h1 class="heading" xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt"><span onclick="ExpandCollapse(sectionToggle1)" style="cursor:default;" onkeypress="ExpandCollapse_CheckKey(sectionToggle1, event)" tabindex="0">运行示例</span></h1><div id="sectionSection1" class="section"><ul xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt"><li><p>
若要从生成环境命令窗口运行已编译的示例,请执行示例源代码文件夹下包含的 Bin\Debug 或 Bin\Release 文件夹中的 .exe 文件。
</p></li><li><p>
若要在 Visual Studio 中调试运行已编译的示例,请按 F5。
</p></li></ul></div><h1 class="heading" xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt"><span onclick="ExpandCollapse(seeAlsoToggle)" style="cursor:default;" onkeypress="ExpandCollapse_CheckKey(seeAlsoToggle, event)" tabindex="0">请参见</span></h1><div id="seeAlsoSection" class="section"><h4 class="subHeading" xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt">概念</h4><div class="seeAlsoStyle">ImageBrush 示例</div><div class="seeAlsoStyle">使用纯色和渐变进行绘制概述</div><div class="seeAlsoStyle">画笔帮助主题</div><h4 class="subHeading" xmlns:mshelp="http://msdn.microsoft.com/mshelp" xmlns:msxsl="urn:schemas-microsoft-com:xslt">参考</h4><div class="seeAlsoStyle">Brushes</div><div class="seeAlsoStyle">Brush</div></div></div></div></body></html>
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
BrushesIntroduction.zip (30个子文件)
readme.htm 6KB
METADATA
csharp
mssccprj.scc 215B
animatingsolidcolorbrushexample.xaml 6KB
interactivelineargradientbrushexample.xaml.cs 15KB
sampleviewer.xaml 4KB
interactivelineargradientbrushexample.xaml 14KB
brushopacityexample.xaml 11KB
predefinedbrushes.xaml 35KB
samplemedia
xbox.wmv 1.77MB
lineargradientbrushanimationexample.xaml 9KB
gradientbrushesexample.xaml.cs 2KB
radialgradientbrushanimationexample.xaml 9KB
gradientbrushesexample.xaml 11KB
dashexample.xaml 4KB
app.xaml 30KB
app.ico 25KB
brushesintroduction.csproj 5KB
radialgradientbrushexample.xaml 5KB
app.xaml.cs 676B
sampleresources
toc.xml 4KB
solidcolorbrushsyntax.xaml 5KB
sampleviewer.xaml.cs 2KB
sampleimages
pinkcherries.jpg 7KB
steel.png 134KB
sunset.jpg 72KB
cherries.jpg 3KB
clouds.png 16KB
gradientspreadexample.xaml 7KB
brushtransformexample.xaml 14KB
brushtypesexample.xaml 19KB
共 30 条
- 1
资源评论
- yuyu4656992015-06-01还是不错的,虽然不是我预期的效果,但还是值得参考借鉴,谢谢分享
- xiaoxiao080920122013-11-14很不错的例子,虽然没有说明,但例子中各种情况都做了,直接每部分的代码就行了,很方便!
- spoonysnail2014-02-02挺不错的,虽然没找到我想要的效果,但是对brush的使用很有帮助
- flying22012-11-09没有任何说明,解压后一堆代码,参考意义不大。
wxj925
- 粉丝: 4
- 资源: 20
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功