Can*_*ith 5 c# wpf xaml datatrigger
我想做点什么
<DataTrigger Binding="{Binding Something}" ValueIsNot="{x:Null}">
Run Code Online (Sandbox Code Playgroud)
我认为你最好的选择是使用转换器.有关将结果转换为布尔值的示例,请参阅此博客文章.
<DataTrigger
Binding="{Binding Path=x, Converter={StaticResource IsNotNullConverter}}"
Value="true">
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
717 次 |
| 最近记录: |