wpf 多重绑定

<TextBox.Text>
<MultiBinding StringFormat="姓名:{0}{1}">
<Binding Path="FristName" />
<Binding Path="LastName" />
</MultiBinding>
</TextBox.Text>

-------------------------------------------------------------------------------

<DataGridTemplateColumn Header="停播时间">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock>
<TextBlock.Text>
<MultiBinding StringFormat="{}{0}{1}">
<Binding Path="BroadcastStopTimeIsNextDay"></Binding>
<Binding Path="BroadcastStopTime"></Binding>
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>

posted @ 2022-01-25 16:25  simadi  阅读(308)  评论(0编辑  收藏  举报