共用方式為


RibbonControlService.SetFocusedBackground(DependencyObject, Brush) 方法

定義

設定物件的 FocusedBackground 附加屬性值。

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

參數

element
DependencyObject

要寫入附加屬性的物件。

value
Brush

要設定的值。

例外狀況

指定的 elementnull

適用於