/// <summary>
        /// グリッドビューのアイテム変更状態変更イベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        private void gridView_ContainerContentChanging(ListViewBase sender, ContainerContentChangingEventArgs args)
        {
            if (args.Phase == 0)
            {
                if (m_scrollPosition.HasValue)
                {
                    gridView.ScrollToVerticalOffset(m_scrollPosition.Value);
                    if (m_scrollPosition.Value == 0 || gridView.VerticalOffset != 0)
                    {
                        m_scrollPosition = null;
                        args.RegisterUpdateCallback(1, gridView_ContainerContentChanging);
                    }
                    else
                    {
                        //スクロール位置が設定できなかったのでもう一度試す
                        args.RegisterUpdateCallback(0, gridView_ContainerContentChanging);
                    }
                }
                else
                {
                    args.RegisterUpdateCallback(1, gridView_ContainerContentChanging);
                }
            }
            else if (args.Phase == 1)
            {
                CommonPageManager.OnGridContentChanging(args.Item as FolderListItem, args.InRecycleQueue);
            }

            args.Handled = true;
        }
Exemple #2
0
 /// <summary>
 /// グリッドビューのアイテム変更状態変更イベント
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void gridView_ContainerContentChanging(ListViewBase sender, ContainerContentChangingEventArgs args)
 {
     CommonPageManager.OnGridContentChanging(args.Item as FolderListItem, args.InRecycleQueue);
 }
Exemple #3
0
 /// <summary>
 /// アイテムを選択したとき
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gridView_ItemClick(object sender, ItemClickEventArgs e)
 {
     CommonPageManager.OnGridViewItemClick(this.Frame, e.ClickedItem as FolderListItem);
 }
Exemple #4
0
 /// <summary>
 /// 全画面グリッドでタッチ・マウスボタンを離したとき
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Grid_PointerReleased(object sender, PointerRoutedEventArgs e)
 {
     CommonPageManager.OnGridPointerReleased(this.Frame, e);
 }