ExternalResourceService Class

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Provides access to resources external to the markup file.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Services.ExternalResourceService

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

Syntax

'Declaration
Public MustInherit Class ExternalResourceService
public abstract class ExternalResourceService
public ref class ExternalResourceService abstract
[<AbstractClass>]
type ExternalResourceService =  class end
public abstract class ExternalResourceService

The ExternalResourceService type exposes the following members.

Constructors

  Name Description
Protected method ExternalResourceService Initializes a new instance of the ExternalResourceService class.

Top

Properties

  Name Description
Public property ApplicationModel When overridden in a derived class, gets the application model.
Public property ResourceUris When overridden in a derived class, gets an enumeration of URI values that can be loaded as resources.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetBinaryResource When overridden in a derived class, gets the specified URI in the project system and returns its contents as a binary blob.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetModelResource When overridden in a derived class, gets the specified URI in the project system, loads it, and returns a ModelItem representing the root.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TranslateStreamUri When overridden in a derived class, translates a local URI back to its original URI.

Top

Remarks

You may use this class to access binary resources, such as images, or model resources, such as resource dictionaries. Model resources are not editable.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Windows.Design.Services Namespace

Other Resources

WPF Designer Extensibility