Signum Documentation

The documentation comes from the Markdown files in the source code, so is always up-to-date but available only in English. Enjoy!

Paste your Framework commit SHA

Localization

DescriptionManager provides the basic infrastructure to support localization of PropertyInfo, Enums, Symbols and Types (singular and plural).

In Signum.Web, there are some three MarkupExtensions to simplify integrating localized texts in your code.

LocExtension

MarkupExtension to evaluate Enum.NiceToString in XAML.

public class LocExtension : MarkupExtension
{
    [ConstructorArgument("key")]
    public Enum Key { get; set; }

    public LocExtension(Enum key)
}

Example:

<TextBlock Text="{m:Loc {x:Static d:SearchMessage.Filters}}" VerticalAlignment="Center" Margin="3,0,0,0"/>

LocSymbolExtension

MarkupExtension to evaluate Symbol.NiceToString in XAML.

public class LocSymbolExtension : MarkupExtension
{
    [ConstructorArgument("key")]
    public Symbol Key { get; set; }

    public LocSymbolExtension(Symbol key)
}

Example:

<Button Content="{m:LocSymbol {x:Static d:OrderOperation.Save}}" />

LocTypeExtension

MarkupExtension to evaluate Type.NiceName in XAML.

public class LocTypeExtension : MarkupExtension
{
    [ConstructorArgument("type")]
    public Type Type { get; set; }

    public LocTypeExtension(Type type)
}

Example:

<GridViewColumn Header="{m:LocType {x:Type dn:OperationSymbol}}" DisplayMemberBinding="{Binding Resource}" />

LocTypePluralExtension

MarkupExtension to evaluate Type.NicePluralName in XAML.

public class LocTypePluralExtension : MarkupExtension
{
    [ConstructorArgument("type")]
    public Type Type { get; set; }

    public LocTypePluralExtension(Type type)
}

Example:

<MenuItem Header="{m:LocTypePlural {x:Type d:OrderEntity}}">...</MenuItem>