关于MVVM框架内事件绑定的部分细节问题

  <i:Interaction.Triggers>
        <i:EventTrigger EventName="Loaded" >
            <i:InvokeCommandAction Command="{Binding DataContext.WindowLoadedCmd,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}},UpdateSourceTrigger=PropertyChanged}"/>
        </i:EventTrigger>
    </i:Interaction.Triggers>

窗口栏针对事件绑定的相关内容

猜你喜欢

转载自blog.csdn.net/waiting233/article/details/120972311