Table of Contents

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
MarkupExtension
LocExtension
Inherited Members

Constructors

LocExtension()

public LocExtension()

LocExtension(string)

public LocExtension(string key)

Parameters

key string

Properties

Key

public string Key { get; set; }

Property Value

string

Methods

ProvideValue(IServiceProvider)

public override object ProvideValue(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

Returns

object