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
  • 123,504
  • 12
  • 155
  • 268

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
  • 235,767
  • 35
  • 427
  • 472