MVVM Light EventToCommand

Coordinator
Dec 14, 2011 at 6:34 PM

    <i:Interaction.Triggers>
        <i:EventTrigger EventName="Loaded">
            <galaEx:EventToCommand
                Command="{Binding ViewLoadedCommand, Mode=OneWay}"
                />
        </i:EventTrigger>
    </i:Interaction.Triggers>


where:

xmlns:galaEx="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.SL4"

Coordinator
Dec 23, 2011 at 6:38 PM

For completeness:

xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"