public void InitQuery(QueryParam param) { _query = param; _query.AlternativeDate.ItemChanged += AlternativeDate_ItemChanged; var cancelAlternativeDateChanged = _query.AddPropertyChangedEventHandler(s => s.CurrentAlternativeIndex, AlternativeDateChanged); this.Disposed += (s, e) => { cancelAlternativeDateChanged(); }; Refresh(); RefreshHighlight(); }