ToolTipService.SetHasDropShadow(DependencyObject, Boolean) 方法

定义

设置对象的 HasDropShadow 附加属性的值。

public:
 static void SetHasDropShadow(System::Windows::DependencyObject ^ element, bool value);
public static void SetHasDropShadow (System.Windows.DependencyObject element, bool value);
static member SetHasDropShadow : System.Windows.DependencyObject * bool -> unit
Public Shared Sub SetHasDropShadow (element As DependencyObject, value As Boolean)

参数

element
DependencyObject

将附加属性写入到的对象。

value
Boolean

要设置的值。

示例

以下示例演示如何设置附加属性的值 ToolTipService.HasDropShadow

ToolTipService.SetHasDropShadow(ellipse2, false);
ToolTipService.SetHasDropShadow(ellipse2, False)

适用于

另请参阅