0
私の悪い英語のために申し訳ありません。オブジェクトのブール値に応じて、BorderBrush
をListBoxItem
にバインドします。 私はIsForCopy
とIsCutted
ブールの小道具を持っているDirectory
クラスを持っています。 したがって、IsForCopy
が真の場合、BorderBrush
=赤、IsCutted
が真の場合、BorderBrush
=青です。これどうやってするの?c#wpf、ブール値に応じたプロパティのバインド値
ListBox.ItemContainerStyle>
<Style TargetType="{x:Type ListBoxItem}" BasedOn="{StaticResource {x:Type ListBoxItem}}">
<EventSetter Event="MouseDoubleClick" Handler="SecondListBoxItem_MouseDoubleClick"/>
<Setter Property="BorderBrush" Value="What do I should type there?"></Setter>
</Style>
</ListBox.ItemContainerStyle>
Thx。それは動作します! –