本文介绍了[UWP]如何多重绑定到IValueConverter?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在UWP上,
IMultiValueConverter
 不支持。

On UWP, IMultiValueConverter doesn't support .

如何为此文本块进行多重绑定

How to multiple binding for this textblock

< TextBlock x:Name =" txtContentMessage" ; Text =" {Binding Text}" TextTrimming =" CharacterEllipsis" 

  &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; &NBSP; TextWrapping = QUOT;包覆与QUOT; Foreground =" {Binding Entities,ConverterParameter = {Binding Text},Converter = {StaticResource
ChangedColorToUrlConverter},Mode = TwoWay}" MAXLINES = QUOT; 3英寸Grid.Row =" 1">< / TextBlock>

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

推荐答案


这篇关于[UWP]如何多重绑定到IValueConverter?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 22:08