public GestionEventsView() { bm = new BusinessLayer.BusinessManager(); InitializeComponent(); this.EventControl.stackPanel.SelectionChanged += new SelectionChangedEventHandler(stackPanel_SelectionChanged); GestionEventModel = new GestionEventsViewModel(EventControl,bm.getPlanningElements().OrderBy(m => m.DateDebut).ToList()); EventControl.Update(_gestionEvent.TempList.OrderBy(m => m.DateDebut).ToList()); }