0
<!-- language: c# -->
我想從路徑效應PART_Shadow
的Opacity
後面的代碼改變。 我試過GetTemplateChild
方法,但它僅返回NULL 。艾策斯Path.Effect Propertys從代碼隱藏
<Path x:Name="PART_Path" Stretch="Fill" StrokeThickness="1.0" Stroke="#ff1c1c1a">
<Path.Effect>
<DropShadowEffect x:Name="PART_Shadow" Color="LightGray" BlurRadius="5" Direction="45"
ShadowDepth="3" RenderingBias="Performance"/>
</Path.Effect>
</Path>