Skip to content

Check Binding in Binding in Setter & Docu #258

@konne

Description

@konne

designtime support in setters with non Binding Markupelement

Check if this is working

<Setter Property="Text" Value="{Binding Source={lex:Loc {Binding test}}}" />

Docu the following cool workaround many thanks @Karnah

<TextBlock FontSize="20">
    <TextBlock.Style>
        <Style TargetType="TextBlock">
            <Setter Property="Text" Value="{Binding Source={lex:Loc en}}" />

            <Style.Triggers>
                <DataTrigger Binding="{Binding ElementName=CheckBox, Path=IsChecked}" Value="True">
                    <Setter Property="Text" Value="{Binding Source={lex:Loc de}}" />
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </TextBlock.Style>
</TextBlock>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions