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
- callback
Type: Microsoft.Windows.Design.Interaction.LoadResourcesCallback
A callback used to return the resource dictionary.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace