【发布时间】:2013-06-08 06:51:28
【问题描述】:
我有一个文本块,在我的源 2 属性中,用于在文本块中显示名称 Property1 为 null 然后显示 Property2
<TextBlock x:Name="txtName" Text="{Binding Property1 , Mode=OneWay, Converter={StaticResource DataConvertor}, ConverterParameter=lblDisplayName,TargetNullValue={Binding Path=Property ,Mode=OneWay}}"></TextBlock>
但它在运行时给我错误
【问题讨论】:
标签: c# silverlight binding