Example #1
0
 public static void SetPanningMode(DependencyObject element, PanningMode panningMode)
 {
     NoesisGUI_PINVOKE.ScrollViewer_SetPanningMode(DependencyObject.getCPtr(element), (int)panningMode);
     if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
     {
         throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public static void SetPanningMode(DependencyObject element, PanningMode panningMode)
 {
     if (element == null)
     {
         throw new ArgumentNullException("element");
     }
     {
         NoesisGUI_PINVOKE.ScrollViewer_SetPanningMode(DependencyObject.getCPtr(element), (int)panningMode);
     }
 }
Example #3
0
        public static PanningMode GetPanningMode(DependencyObject element)
        {
            PanningMode ret = (PanningMode)NoesisGUI_PINVOKE.ScrollViewer_GetPanningMode(DependencyObject.getCPtr(element));

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 public static PanningMode GetPanningMode(DependencyObject element)
 {
     if (element == null)
     {
         throw new ArgumentNullException("element");
     }
     {
         PanningMode ret = (PanningMode)NoesisGUI_PINVOKE.ScrollViewer_GetPanningMode(DependencyObject.getCPtr(element));
         return(ret);
     }
 }
Example #5
0
 protected override void OnTouchDown(TouchEventArgs e)
 {
     // store panning mode or set it back to it's original state. OnManipulationCompleted does not do it every time, so we need to set it once more.
     if (this.panningModeSet == false)
     {
         this.panningMode    = this.PanningMode;
         this.panningModeSet = true;
     }
     else
     {
         this.PanningMode = this.panningMode;
     }
     base.OnTouchDown(e);
 }
 public static void SetPanningMode(System.Windows.DependencyObject element, PanningMode panningMode)
 {
 }
Example #7
0
 public static void SetPanningMode(DependencyObject element, PanningMode panningMode)
 {
     NoesisGUI_PINVOKE.ScrollViewer_SetPanningMode(DependencyObject.getCPtr(element), (int)panningMode);
 }
Example #8
0
        public static PanningMode GetPanningMode(DependencyObject element)
        {
            PanningMode ret = (PanningMode)NoesisGUI_PINVOKE.ScrollViewer_GetPanningMode(DependencyObject.getCPtr(element));

            return(ret);
        }
Example #9
0
        /// <summary>
        ///     Set method for PanningMode
        /// </summary>
        public static void SetPanningMode(DependencyObject element, PanningMode panningMode)
        {
            if (element == null)
            {
                throw new ArgumentNullException("element");
            }

            element.SetValue(PanningModeProperty, panningMode);
        }
Example #10
0
        public static IntPtr Box_PanningMode(PanningMode val)
        {
            IntPtr ret = NoesisGUI_PINVOKE.Box_PanningMode((int)val);

            return(ret);
        }
Example #11
0
        public static PanningMode Unbox_PanningMode(IntPtr val)
        {
            PanningMode ret = (PanningMode)NoesisGUI_PINVOKE.Unbox_PanningMode(val);

            return(ret);
        }
 public static void SetPanningMode(System.Windows.DependencyObject element, PanningMode panningMode)
 {
 }
Example #13
0
 public static T PanningMode <T>(this T target, PanningMode value) where T : DependencyObject
 {
     Controls.ScrollViewer.SetPanningMode(target, value);
     return(target);
 }
 public static ScrollViewer PanningMode(this ScrollViewer target, PanningMode value)
 {
     target.PanningMode = value;
     return(target);
 }