LocalizationHelperLocalizationRequested Event

Occurs when the localization of a string is requested. Can be used to redirect the localization requests to a custom resource manager, or to set the value for a given key programmatically.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static event EventHandler<LocalizationRequestedEventArgs> LocalizationRequested

Value

EventHandlerLocalizationRequestedEventArgs

Remarks

Can be invoked indirectly by BaseForm and BaseUserControl instances when their DynamicStringLocalization property is set to a non-default value. If using LocalScope or AssemblyScope values, new .resx files may be created in the Resources subfolder of the executing application during runtime, when the handlers of this event do not set the Value property.
See the Remarks section of the DynamicStringLocalization for details.

  Note

Typically, it is not recommended to add multiple handlers to this event. Still, subscribers can check if Value is not , which means that a subscriber has already set the value for the given key.

See Also