Exemplo n.º 1
0
        /// <summary>
        /// 选择事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnSelectedItemChanged(SelectedEntityChangedEventArgs e)
        {
            //界面选择事件,已经引发了CurrentObject的更改,这里需要发生此事件。
            this.OnCurrentChanged();

            //触发外部事件
            var hander = this.SelectedItemChanged;

            if (hander != null)
            {
                hander(this, e);
            }

            this.RaiseRoutedEvent(SelectedItemChangedEvent, e);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 选择事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnSelectedItemChanged(SelectedEntityChangedEventArgs e)
        {
            //界面选择事件,已经引发了CurrentObject的更改,这里需要发生此事件。
            this.OnCurrentChanged();

            //触发外部事件
            var hander = this.SelectedItemChanged;
            if (hander != null) { hander(this, e); }

            this.RaiseRoutedEvent(SelectedItemChangedEvent, e);
        }
Exemplo n.º 3
0
 void IEventListener.NotifySelectedItemChanged(object sender, SelectedEntityChangedEventArgs e)
 {
     e.View = this;
     this.OnSelectedItemChanged(e);
 }
Exemplo n.º 4
0
 void IEventListener.NotifySelectedItemChanged(object sender, SelectedEntityChangedEventArgs e)
 {
     e.View = this;
     this.OnSelectedItemChanged(e);
 }