
Behavior vs Attached Property #2
Una Attached Property, in quanto proprietà, necessita che venga settato un valore al fine di “attivarla”, mentre un Behavior, in quanto comportamento, è molto più simile ad un metodo e, come evidenziato, non è necessario nulla perchè venga attivato:
Un discreto vantaggio :-)<TextBox Height="23" Text="{Binding DataSource.StreetNumber}"> <i:Interaction.Behaviors> <behaviors:DisableUndoManagerBehavior /> i:Interaction.Behaviors> TextBox>
.m