Exemple #1
0
        /// <summary>
        ///  Check if a point is intersected with the sorting box.
        /// </summary>
        /// <param name="point"></param>
        /// <returns></returns>
        public async Task <bool> IsIntersected(Point point)
        {
            bool isIntersect = false;
            await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                isIntersect = Coordination.IsIntersect(point, this, true);
            });

            return(isIntersect);
        }
Exemple #2
0
        /// <summary>
        /// Check if the point is intersect with delete button
        /// </summary>
        /// <param name="position"></param>
        /// <returns></returns>
        internal async Task <bool> IsIntersectWithDelete(Point position)
        {
            bool isIntersect = false;
            await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                isIntersect = Coordination.IsIntersect(position, deleteButton, false);
            });

            return(isIntersect);
        }