예제 #1
0
        public virtual void MoveToItem(UInt64 id, JumpItemStyle style = JumpItemStyle.MoveTo)
        {
            if (DataListBox == null || DataListBox.Items.Count == 0)
            {
                return;
            }

            ItemIdx = ViewUtil.JumpToListItem(id, DataListBox, style);
        }
예제 #2
0
 protected override void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     //BlackoutWindow経由のジャンプ
     base.UserControl_IsVisibleChanged(sender, e);
     if (DataListBox != null && this.IsVisible == true)
     {
         if (BlackoutWindow.HasData == true)
         {
             ItemIdx = ViewUtil.JumpToListItem(BlackoutWindow.SelectedData, DataListBox, BlackoutWindow.NowJumpTable == true ? JumpItemStyle.JumpTo : JumpItemStyle.None);
         }
         BlackoutWindow.Clear();
     }
 }
예제 #3
0
        public virtual int MoveToItem(UInt64 id, JumpItemStyle style = JumpItemStyle.MoveTo, bool dryrun = false)
        {
            if (DataListBox == null || DataListBox.Items.Count == 0)
            {
                return(-1);
            }

            int idx = ViewUtil.JumpToListItem(id, DataListBox, style, dryrun);

            if (dryrun == false)
            {
                ItemIdx = idx;
            }
            return(idx);
        }