Kötü ingilizcem için özür dilerim. Nesnenin boole değerine bağlı olarak BorderBrush
ListBoxItem
'u bağlamak istiyorum. IsForCopy
ve IsCutted
bool props bulunan bir Directory
sınıfım var. Yani, IsForCopy
doğruysa, BorderBrush
= Kırmızı, IsCutted
doğruysa, o zaman BorderBrush
= Mavi. Bunu nasıl yapabilirim?C# wpf, bool değerine bağlı olarak özelliklerin ciltlenme değeri
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. Bu işe yarıyor! –