0

I have a MultiBinding in TextBlock with a condition that allow one on two strings to be displayed, and i want to add a string format to one of the two strings but i can't add it to a

please help!

XAML:

<TextBlock Style="{StaticResource Title}">
    <TextBlock.Text>
        <MultiBinding Converter="{StaticResource 
            ConvertisseurMultipleConcatenator}"
            ConverterParameter=" ">
                <Binding Path="returnBoolean"
                     Converter="{StaticResource ConvertModification}" 
                                 ConverterParameter=" " />                        
                <Binding Path="Name" />
                <Binding Source=":"/>
       </MultiBinding>
    </TextBlock.Text>
</TextBlock>

<convertisseur:ConvertisseurBooleenObject x:Key="ConvertModification"
                                            Faux="{x:Static 
   ressources:Ressources.AJOUT_ASSURANCE_LIBELLE_ASSURE}"
                                            Vrai="{x:Static 
   ressources:Ressources.AJOUT_ASSURANCE_DETAIL_ASSURE}"/>

want to replace IT with this

<TextBlock Text="{Binding Name, StringFormat={x:Static 
           ressources:Ressources.SOME_RESSOURCE}}"
           Style="{StaticResource Text}">                               
</TextBlock>

ViewModel:

public bool returnBoolean{
        get {
            return Age() <= 12;
        }
    }
dhilmathy
  • 2,800
  • 2
  • 21
  • 29
Ben Ad
  • 33
  • 5

0 Answers0