路径与破碎的阴影效果(Path with broken shadow effect)
我希望它在图像中足够清晰,我有一个带有阴影效果的三角形看起来不那么好,似乎在某种程度上被破坏了。 任何帮助将不胜感激。
( 更新:矩形和路径必须分开)
XAML:
<Grid Height="50" Width="60" > <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="20" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Rectangle Grid.Column="1" Stroke="Black" Fill="White"> <Rectangle.Effect> <DropShadowEffect Opacity="0.5" ShadowDepth="4" BlurRadius="10" /> </Rectangle.Effect> </Rectangle> <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Left" Margin="0,15,-1,15" Data="M44.386378,164.8791 L22.983157,171.42119 44.713478,176.58567" Width="23.167"> <Path.Effect> <DropShadowEffect BlurRadius="10" Opacity="0.5" ShadowDepth="4" /> </Path.Effect> </Path> </Grid> </Grid>
I hope that it is clear enough in the image, I have a triangle with shadow effect that doesn't look so good, seems to be broken somehow. Any help will be greatly appreciated.
(Update: the rectangle and the path have to be separated)
XAML:
<Grid Height="50" Width="60" > <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="20" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Rectangle Grid.Column="1" Stroke="Black" Fill="White"> <Rectangle.Effect> <DropShadowEffect Opacity="0.5" ShadowDepth="4" BlurRadius="10" /> </Rectangle.Effect> </Rectangle> <Path Fill="White" Stretch="Fill" Stroke="Black" HorizontalAlignment="Left" Margin="0,15,-1,15" Data="M44.386378,164.8791 L22.983157,171.42119 44.713478,176.58567" Width="23.167"> <Path.Effect> <DropShadowEffect BlurRadius="10" Opacity="0.5" ShadowDepth="4" /> </Path.Effect> </Path> </Grid> </Grid>
原文:https://stackoverflow.com/questions/4519243
最满意答案
两种可靠的手段是:
如果
submit
它们作为批处理作业submit
,则可以使用synchronize
命令依次等待每个作业。使用
run/detach
启动进程允许您指定/mailbox
以接收终止消息。子流程略有不同。 一种方法是共享逻辑名称表,并让每个子进程相应地更新其状态。 无法保证会报告异常终止。
如果您愿意做一些额外的工作,可以创建几个小应用程序来使用锁管理器或公共事件标志集群来传达状态更新。
Two reliable means are:
If you
submit
them as batch jobs you can use thesynchronize
command to wait on each in turn.Using
run/detach
to start the processes allows you to specify a/mailbox
to receive the termination message.Subprocesses are a little different. One approach is to share a logical name table and have each subprocess update its status accordingly. There is no guarantee that an abnormal termination will be reported.
If you are willing to do some extra work you can create a couple of small applications to use either the lock manager or a common event flag cluster to communicate status updates.
相关问答
更多-
什么是DQL,DML,DDL,DCL[2021-10-02]
DQL数据查询语言,DML数据操纵语言,DDL数据定义语言,DCL数据控制语言。 1 数据查询语言DQL 数据查询语言DQL基本结构是由SELECT子句,FROM子句,WHERE 子句组成的查询块: SELECT FROM WHERE 2 数据操纵语言DML 数据操纵语言DML主要有三种形式... -
加载组件时,您可以从子系统的子事件中调用父函数。 dcl.loadIntoLocation(ChildComponent, elementRef, 'child') .then((newComponent) => { newComponent.instance.event.subscribe(() => { .. call your parent ..}); }) UPDATE 请看这里的plunker: http ://plnkr.co/edit/DNmtl6TG5s2dsEUlVTvw ...
-
OpenVMS中的DCL符号语法(DCL symbol syntax in OpenVMS)[2022-04-01]
您可以在http://hp.com/go/vms在线找到VMS文档 您要阅读的手册是http://h71000.www7.hp.com/doc/731final/documentation/pdf/ovms_731_users.pdf (具体为第2章)中的“OpenVMS用户手册”。 You can find VMS documentation on-line at http://hp.com/go/vms The manual you want to read is the OpenVMS User's ... -
导出多个vms(exporting multiple vms)[2024-01-15]
要使代码生效,您需要告诉cmd.exe您希望它执行命令。 只需在命令之前输入/C ,如下所示: string.Format("Invoke-SCScriptCommand -Executable \"%WINDIR%\\System32\\cmd.exe\" -VMHost (Get-SCVMHost -ID \"{1}\") -CommandParameters \"/C START powershell {2}\" -RunAsynchronously -TimeoutSeconds 360000", ... -
两种可靠的手段是: 如果submit它们作为批处理作业submit ,则可以使用synchronize命令依次等待每个作业。 使用run/detach启动进程允许您指定/mailbox以接收终止消息。 子流程略有不同。 一种方法是共享逻辑名称表,并让每个子进程相应地更新其状态。 无法保证会报告异常终止。 如果您愿意做一些额外的工作,可以创建几个小应用程序来使用锁管理器或公共事件标志集群来传达状态更新。 Two reliable means are: If you submit them as batch j ...
-
在dcl脚本中隐藏错误消息(hide error messages in dcl script)[2021-09-24]
禁止脚本内的错误消息。 试试这个命令 $ DEFINE/USER SYS$ERROR NL: NL:是一个空设备,因此您不会看到终端上显示的任何错误消息。 祝你好运 To suppress Error message inside a script. try this command $ DEFINE/USER SYS$ERROR NL: NL: is a null device, so you don`t see any error messages displayed on your termi ... -
通常的做法是将输出写入文件并从文件中读取并将其放入DCL符号(或逻辑)中。 虽然不是很明显,但你可以用PIPE命令做到这一点: $ pipe r 2words hello world $ pipe r 2words |(read sys$pipe line ; line=""""+line+"""" ; def/job value &line ) $ sh log value "VALUE" = "hello world" (LNM$JOB_85AB4440) $ The usual way to ...
-
在单个PowerShell脚本中并行创建多个Azure VM(create multiple Azure VMs in single powershell script parallely)[2022-06-27]
您是否考虑过VM Scale Sets? 它们以高可用性配置并行自动部署VM,并使管理这些VM变得更加容易(概述文档: https : //docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine -scale-sets-overview )。 您当然可以从powershell部署一个规模集或一堆虚拟机(doc,用于通过PowerShell部署规模集: https : //docs.microsoft.com/en-u ... -
超时创建vms(Timed out creating vms)[2024-02-06]
请改用“--docker-build local”。 use "--docker-build local" instead. -
只需创建一个新用户并给他连接角色,只需选择表,允许他查看的视图。 create user test identified by notagoodpassword; grant connect to test; grant select on schema.table to test; 编辑:如果您希望用户调用您需要的过程/函数 grant execute on schema.procedure to test; Just create a new user and give him the conn ...