Click or drag to resize

IResourceService Interface

Provides string and bitmap resources.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public interface IResourceService

The IResourceService type exposes the following members.

Properties
 NameDescription
Public propertyLanguage Gets or sets the current UI language.
Top
Methods
 NameDescription
Public methodGetBitmap Returns a bitmap from the resource database, it handles localization transparent for the user.
Public methodGetImageResource Gets an image resource.
Public methodGetResourceStream Gets a resource as a stream. The retrieve resource stream is not cached.
Public methodGetString Returns a string from the resource database, it handles localization transparent for the user. If the resource is not found, the original string is returned.
Public methodRegisterAssemblyResources Registers all resources that are directly included into the assembly given in the argument. See remarks for how the string resources are registered.
Public methodCode exampleRegisterImages Registers image resources in the resource service.
Public methodRegisterNeutralImages Registers neutral image resources in the resource service.
Public methodRegisterNeutralStrings Registers neutral string resources in the resource service.
Public methodCode exampleRegisterStrings Registers string resources in the resource service.
Top
Events
 NameDescription
Public eventLanguageChanged Occurs when the current UI language changes.
Top
See Also