Version

GetSealedResource Method

Obtains the resource stored within the ResourceDictionary with the specified key and if the resource is sealable will ensure that the object is sealed.
Syntax
'Declaration
 
Public Shared Function GetSealedResource( _
   ByVal dictionary As ResourceDictionary, _
   ByVal key As Object _
) As Object
public static object GetSealedResource( 
   ResourceDictionary dictionary,
   object key
)

Parameters

dictionary
The dictionary whose sealed resource is to be returned.
key
Key of the resource within the dictionary to obtain

Return Value

The object stored with the specified key
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also