当前位置: 首页 > 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.gsyq.cn/news/9629.html

相关文章:

  • 在控制台执行这段代码可以列出所有::selection规则
  • 超前探展!2025 云栖大会朋友圈晒图必备
  • 进程池
  • 报表神器Stimulsoft再升级!Stimulsoft Reports、Dashboards 和 PDF Forms 2025.4 即将发布!
  • 数显LED驱动芯片恒流数码管驱动IC内置显示RAM为816位 VK16D33
  • 【AI智能体】Dify 搭建数据分析应用实战操控详解
  • PostgreSQL 全表 count 优化实践:从 SeqScan 痛点分析到 heapam 改进与性能突破
  • Lightroom Classic 2025:精细调控,呈现完美画质,专业级数字照片管理与后期处理全解析
  • 负载分析和排查五
  • langfuse从v2.70.1升级到V3.110(异机升级+数据迁移)
  • 校u圈校园外卖众包任务课表交友CPS社区:一站式校园生态服务系统
  • AT_abc413_g [ABC413G] Big Banned Grid
  • 日常练习另一部分
  • 每天一个安卓测试开发小知识之 (六)---常用的adb 命令第四期
  • 视频融合平台EasyCVR国标GB28181视频诊断功能详解与实践
  • MyEMS 进阶应用:从单厂能耗管理到集团跨区域能源数据协同分析
  • avalonia android TextBox多行模式下回车会关闭输入法问题
  • client-go限速之QPS、Burst 和 RateLimiter
  • python实现网站登录会话脚本 - wanghongwei
  • 基于java+springboot的社区居民诊疗健康管理系统(源代码+文档+讲解视频) - 指南
  • 时序数据库IoTDB的六大实用场景盘点 - 指南
  • K8S的CoreDns配置文件添加域名解析
  • nodify_介绍及安装
  • MQTT协议(消息队列遥测传输)
  • 【低代码平台之应用构建展示】数智化贸易订单管理平台
  • Threading 串行VS并发
  • parallel index
  • 微指令控制器基本原理
  • 一个拒绝过度设计的 .NET 快速开发框架:开箱即用,专注干活
  • React 学习笔记4 Diffing/脚手架 - 详解