Skip to content

Searching for a way to implement Multibinding with localized enum value #289

@JorisCleVR

Description

@JorisCleVR

Because lex:LocProxy is deprecated I try to refactor my code.
I tried the following:
<TextBlock Style="{StaticResource DSTextBlock}" Grid.Row="3" Grid.Column="1"> <TextBlock.Text> <MultiBinding StringFormat="{lex:Loc LocalizationView_FormatText1}"> <Binding Path="Number1" /> <Binding Path="String1" /> <lex:BLoc Path="Enum1Value" Converter="{lex:PrependTypeConverter}" /> </MultiBinding> </TextBlock.Text> </TextBlock>

The value of LocalizationView_FormatText1 is: "This is a formated text with a number: {0}, a string: {1} and an enum: {2}."

Unfortunatly I get the following Exception: "Path not allowed for BLoc".

Am I missing something on how I could implement this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions