Xamlを使用してDevexpressGridcontrolを使用してアプリを開発しています。セルテンプレートに、Bindingの値が「0」の場合は「Open」、「0」の場合は「Close」を表示するテキストブロックがあります。FormatterStringこれは、 ieを使用して実行できますか。FormatStringConverter?を使用する
1 に答える
            0        
        
		
お役に立てれば。:)
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
<TextBlock Text="{Binding Value}">
  <i:Interaction.Triggers>
    <ei:DataTrigger Value="0" Binding="{Binding Text, ElementName=Self}">
        <im:ChangePropertyAction PropertyName="Text"
                                         Value="Open"/>
    </ei:DataTrigger>
    <ei:DataTrigger Value="1" Binding="{Binding Text, ElementName=Self}">
        <im:ChangePropertyAction PropertyName="Text"
                                         Value="Close"/>
    </ei:DataTrigger>
  </i:Interaction.Triggers>
</TextBlock>
于 2013-01-25T20:11:07.890   に答える