ToolTip.HasDropShadow 屬性

定義

取得或設定值,指出控制項是否具有延伸陰影。

public:
 property bool HasDropShadow { bool get(); void set(bool value); };
public bool HasDropShadow { get; set; }
member this.HasDropShadow : bool with get, set
Public Property HasDropShadow As Boolean

屬性值

如果控制項具有延伸陰影,則為 true,否則為 false。 預設為 false

範例

下列範例示範如何設定 HasDropShadow 控制項的 屬性 ToolTip

<Ellipse Height="25" Width="50" 
         Fill="Gray" 
         HorizontalAlignment="Left"
         ToolTipService.InitialShowDelay="1000"
         ToolTipService.ShowDuration="7000"
         ToolTipService.BetweenShowDelay="2000">
  <Ellipse.ToolTip>
    <ToolTip Placement="Right" 
             PlacementRectangle="50,0,0,0"
             HorizontalOffset="10" 
             VerticalOffset="20"
             HasDropShadow="false"
             Opened="whenToolTipOpens"
             Closed="whenToolTipCloses"
             >
      <BulletDecorator>
        <BulletDecorator.Bullet>
          <Ellipse Height="10" Width="20" Fill="Blue"/>
        </BulletDecorator.Bullet>
        <TextBlock>Uses the ToolTip Class</TextBlock>
      </BulletDecorator>
    </ToolTip>
  </Ellipse.ToolTip>
</Ellipse>

備註

ToolTip開啟時,值會設定為 的值 SystemParameters.DropShadow 。 如果 屬性為 false ,則 SystemParameters.DropShadow 此屬性設定為 true 沒有作用。

相依性屬性資訊

識別碼欄位 HasDropShadowProperty
設定為 的中繼資料屬性 true

適用於

另請參閱