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

适用于