0
<TextBlock x:Name="txtContentMessage" Text="{Binding Text}" TextTrimming="CharacterEllipsis" 
TextWrapping="Wrap" Foreground="{Binding Entities,Converter={StaticResource ChangedColorToUrlConverter}}" MaxLines="3" Grid.Row="1">
</TextBlock>

Now, It just pass data to object value. So I also want to pass to object parameter

  • object value will be assigned by Entities.
  • object parameter will be assigned by Text.
Clemens
  • 117,112
  • 10
  • 139
  • 247

1 Answers1

0

Use the ConverterParameter binding property

<TextBlock x:Name="txtContentMessage" 
    Text="{Binding Text}" 
    TextTrimming="CharacterEllipsis" 
    TextWrapping="Wrap" 
    Foreground="{Binding Entities, ConverterParameter='PUT TEXT HERE', Converter={StaticResource ChangedColorToUrlConverter}}" 
    MaxLines="3" 
    Grid.Row="1" />
Nkosi
  • 215,613
  • 32
  • 363
  • 426