GuOrg/Gu.Localization

Binding support

Closed this issue · 0 comments

Please support the following modes if possible:

<TextBlock Text="{hc:Localization {Binding Path=key, FallbackValue=en}}"/>


<Style x:Key="hardCodedStyle1" TargetType="TextBlock">
    <Setter Property="Text" Value="{hc:Localization Key=de}" />
</Style>

<TextBox>
    <TextBox.Text>
        <MultiBinding StringFormat="Binding test: {0} - {1}">
            <MultiBinding.Bindings>
                <hc:Localization Key="Country" />
                <hc:Localization Key="Area" />
            </MultiBinding.Bindings>
        </MultiBinding>
    </TextBox.Text>
</TextBox>