, - ? sorta-, VS , , . , SetterAction , .
<TextBox Text="ListBox" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="DragEnter" >
<behavior:SetterAction Property="ListBox.ForeColor" Value="Red"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</TextBox>
public class SetterAction : TargetedTriggerAction<FrameworkElement>
{
public DependencyProperty Property { get; set; }
public Object Value { get; set; }
protected override void Invoke(object parameter)
{
AssociatedObject.SetValue(Property, Value);
}
}