RibbonControlService.SetMouseOverBackground(DependencyObject, Brush) 方法

定义

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

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

参数

element
DependencyObject

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

value
Brush

要设置的值。

例外

指定的 elementnull

适用于