コード例 #1
0
        private static void OnGroupTableCollectionChangedCallBack(
            DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            GroupTableUserControl groupTableUserControl          = sender as GroupTableUserControl;
            ObservableCollection <GroupTypeOrder> groupTypeOrder = (ObservableCollection <GroupTypeOrder>)e.NewValue;

            groupTableUserControl.GroupTypeOrderCollection = groupTypeOrder;
        }
コード例 #2
0
        private static void OnGroupTableChangedCallBack(
            DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            GroupTableUserControl groupTableUserControl = sender as GroupTableUserControl;
            GroupTypeOrder        groupTypeOrder        = (GroupTypeOrder)e.NewValue;

            groupTableUserControl.MyGroupTypeOrder = groupTypeOrder;
        }
コード例 #3
0
        void HandleGroupTableDrop(object sender, DragEventArgs e)
        {
            Grid targetGroupTable      = e.Data.GetData("System.Windows.Controls.Grid") as Grid;
            GroupTableUserControl gtUC = (GroupTableUserControl)targetGroupTable.Parent;
            GroupTypeOrder        targetGroupTypeOrder = MyGroupTypeOrder;

            GroupTypeOrder draggedGroupTypeOrder = gtUC.MyGroupTypeOrder;

            if (!targetGroupTypeOrder.GroupTypeID.Equals(draggedGroupTypeOrder.GroupTypeID))
            {
                GTViewModel.HandleGroupTableDrop(targetGroupTypeOrder, draggedGroupTypeOrder);
            }
        }