当前位置: 首页 > news >正文

WPF TextBlock effect DropShadrowEffect,BlurEffect

<Window x:Class="WpfApp32.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:d="http://schemas.microsoft.com/expression/blend/2008"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:local="clr-namespace:WpfApp32"WindowState="Maximized"mc:Ignorable="d"Title="MainWindow" Height="450" Width="800"><Grid><Grid.RowDefinitions><RowDefinition/><RowDefinition/><RowDefinition/><RowDefinition/><RowDefinition/><RowDefinition/></Grid.RowDefinitions><TextBlock Text="DropShadow Effect" FontSize="100" Foreground="Blue"Grid.Row="0" Grid.Column="0"><TextBlock.Effect><DropShadowEffect Color="Red"Direction="10"ShadowDepth="0"BlurRadius="10"Opacity="0.5"RenderingBias="Quality"/></TextBlock.Effect></TextBlock><TextBlock Text="DropShadow Effect" FontSize="100" Foreground="Blue"Grid.Row="1"><TextBlock.Effect><DropShadowEffect Color="Black"Direction="0"ShadowDepth="15"BlurRadius="50"Opacity="0.8"RenderingBias="Performance"/></TextBlock.Effect></TextBlock><TextBlock Text="Blurred Effect"  FontSize="100" Grid.Row="2" Foreground="Black"><TextBlock.Effect><BlurEffect Radius="10" KernelType="Gaussian"/></TextBlock.Effect></TextBlock><TextBlock Text="Blurred Effect"  FontSize="100" Grid.Row="3" Foreground="Black"><TextBlock.Effect><BlurEffect Radius="10" KernelType="Box"/></TextBlock.Effect></TextBlock><TextBlock Text="Glowing Text" FontSize="100" Grid.Row="4" Foreground="Black"><TextBlock.Effect><DropShadowEffect Color="Cyan"Direction="0"ShadowDepth="0"BlurRadius="15"Opacity="0.8"/></TextBlock.Effect></TextBlock></Grid>
</Window>

 

 

image

 

http://www.jsqmd.com/news/1595/

相关文章:

  • .NET驾驭Word之力:结构化文档元素操作
  • 行稳、致远 | 技术驱动下的思考感悟
  • 在控制台执行这段代码可以列出所有::selection规则
  • JDK从8升级到21的问题集
  • 超前探展!2025 云栖大会朋友圈晒图必备
  • 进程池
  • AutoCAD 2025 CAD 安装包中文永久免费免激活破解版下载及详细安装教程
  • 报表神器Stimulsoft再升级!Stimulsoft Reports、Dashboards 和 PDF Forms 2025.4 即将发布!
  • 题解:AT_agc027_e [AGC027E] ABBreviate
  • 【PostgreSQL 17】11 窗口函数
  • 商家列表管理与公众号二维码绑定​,方便对用户进行消息通知提醒
  • linux权限细化管理的三种方法:polkit sudoer doas做权限管理
  • 国产化Excel开发组件Spire.XLS教程:Python 写入 Excel 文件,数据写入自动化实用指南
  • Ansible的安装和使用
  • 数显LED驱动芯片恒流数码管驱动IC内置显示RAM为816位 VK16D33
  • 详细介绍:【TEC045-KIT】基于复旦微 FMQL45T900 的全国产化 ARM 开发套件
  • 【IEEE出版】2025年智慧物联与电子信息工程国际学术会议(IoTEIE 2025)
  • 9.22 机房练习
  • 完整教程:stm32f103c8t6 led闪灯实验
  • eslint
  • 视频调色神器!CyberLink ColorDirector:从入门到专业的视频色彩魔法工具
  • 【AI智能体】Dify 搭建数据分析应用实战操控详解
  • Leveraging Context-Aware Prompting for Commit Message Generation 论文笔记
  • P4951 [USACO01OPEN] Earthquake 题解
  • 用ida插件快速审计函数调用
  • 【ACM独立出版|往届已EI、Scopus检索|合作SSCI】第二届数字经济与计算机科学国际学术会议(DECS 2025)
  • schematool -initSchema -dbType mysql
  • PostgreSQL 全表 count 优化实践:从 SeqScan 痛点分析到 heapam 改进与性能突破
  • Lightroom Classic 2025:精细调控,呈现完美画质,专业级数字照片管理与后期处理全解析
  • 负载分析和排查五