jkmills78
8/16/2016 - 11:30 AM

Interactivity - Window Loaded Event

Interactivity - Window Loaded Event

<Window x:Class="myWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
        mc:Ignorable="d"
        Title="My Window" Height="300" Width="300">
    <i:Interaction.Triggers> 
        <i:EventTrigger EventName="Loaded"> 
            <i:InvokeCommandAction Command="{Binding GetUserPermissionsCommand}"/> 
        </i:EventTrigger> 
    </i:Interaction.Triggers>
</Window>