RibbonControlService.SetPressedBackground(DependencyObject, Brush) 方法

定义

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

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

参数

element
DependencyObject

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

value
Brush

要设置的值。

例外

指定的 elementnull

适用于