Class LocExtension
- Namespace
- McServerLauncher.Localization
- Assembly
- McServerLauncher.dll
Markup extension to use translated texts in XAML: {loc:Loc Key}.
Since the language is applied at startup, it returns the text for the active language when the view loads.
public class LocExtension : MarkupExtension
- Inheritance
-
MarkupExtensionLocExtension
- Inherited Members
Constructors
LocExtension()
public LocExtension()
LocExtension(string)
public LocExtension(string key)
Parameters
keystring
Properties
Key
public string Key { get; set; }
Property Value
Methods
ProvideValue(IServiceProvider)
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters
serviceProviderIServiceProvider