共用方式為


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

適用於