/// <summary>
        /// Adds event handlers for the given UIElement. Note: the method overrides all touch handler for the given element.
        /// </summary>
        /// <param name="element"></param>
        /// <param name="handlers"></param>
        public static void AddHandlers(UIElement element, TouchHandlers handlers)
        {
            if (element == null)
            {
                throw new ArgumentNullException("element");
            }

            if (handlers == null)
            {
                throw new ArgumentNullException("handlers");
            }

            currentHandlers[element] = handlers;
        }
Exemple #2
0
        /// <summary>
        /// Adds event handlers for the given UIElement. Note: the method overrides all touch handler for the given element.
        /// </summary>
        /// <param name="element"></param>
        /// <param name="handlers"></param>
        public static void AddHandlers(UIElement element, TouchHandlers handlers)
        {
            if (element == null)
            {
                throw new ArgumentNullException("element");
            }

            if (handlers == null)
            {
                throw new ArgumentNullException("handlers");
            }

            currentHandlers[element] = handlers;
        }