RibbonControlService.SetMouseOverBackground Method

Sets the value of the MouseOverBackground attached property for an object.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Shared Sub SetMouseOverBackground ( _
    element As DependencyObject, _
    value As Brush _
)
public static void SetMouseOverBackground(
    DependencyObject element,
    Brush value
)
public:
static void SetMouseOverBackground(
    DependencyObject^ element, 
    Brush^ value
)
static member SetMouseOverBackground : 
        element:DependencyObject * 
        value:Brush -> unit 
public static function SetMouseOverBackground(
    element : DependencyObject, 
    value : Brush
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The specified element is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

RibbonControlService Class

Microsoft.Windows.Controls.Ribbon Namespace