Share via


AdornerResources.RegisterResources Method

Registers a callback that can provide a resource dictionary.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Shared Sub RegisterResources ( _
    callback As LoadResourcesCallback _
)
public static void RegisterResources(
    LoadResourcesCallback callback
)
public:
static void RegisterResources(
    LoadResourcesCallback^ callback
)
static member RegisterResources : 
        callback:LoadResourcesCallback -> unit 
public static function RegisterResources(
    callback : LoadResourcesCallback
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

callback is nulla null reference (Nothing in Visual Basic).

Remarks

The dictionary returned from the callback will be inserted into the default theme dictionary. The callback will be called again should the theme or high contrast values change.

.NET Framework Security

See Also

Reference

AdornerResources Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

WPF Designer Extensibility

Adorner Architecture

Creating Custom Adorners