How to fire a Command when a window is loaded in wpf

前端 未结 4 1441
Happy的楠姐
Happy的楠姐 2020-12-14 23:08

Is it possible to fire a command to notify the window is loaded. Also, I\'m not using any MVVM frameworks (Frameworks in the sense, Caliburn, Onxy, MVVM Toolkit etc.,)

4条回答
  •  渐次进展
    2020-12-14 23:34

    This is much easier to do now. Simply include the following namespace:

    xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
    

    And leverage it like this:

    
        
            
        
    
    

提交回复
热议问题