Ejemplo n.º 1
0
        public static NameScope GetNameScope(DependencyObject element)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.NameScope_GetNameScope(DependencyObject.getCPtr(element));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return((NameScope)Noesis.Extend.GetProxy(cPtr, false));
        }
        public static FontFamily GetFontFamily(DependencyObject element)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.TextElement_GetFontFamily(DependencyObject.getCPtr(element));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return((FontFamily)Noesis.Extend.GetProxy(cPtr, false));
        }
        public static bool IsDataBound(DependencyObject target, DependencyProperty dp)
        {
            bool ret = NoesisGUI_PINVOKE.BindingOperations_IsDataBound(DependencyObject.getCPtr(target), DependencyProperty.getCPtr(dp));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return(ret);
        }
Ejemplo n.º 4
0
        public static DependencyObject GetTarget(DependencyObject element)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.Storyboard_GetTarget(DependencyObject.getCPtr(element));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return((DependencyObject)Noesis.Extend.GetProxy(cPtr, false));
        }
Ejemplo n.º 5
0
 public static string GetTargetName(DependencyObject element)
 {
     if (element == null)
     {
         throw new ArgumentNullException("element");
     }
     {
         IntPtr strPtr = NoesisGUI_PINVOKE.Storyboard_GetTargetName(DependencyObject.getCPtr(element));
         string str    = Noesis.Extend.StringFromNativeUtf8(strPtr);
         return(str);
     }
 }
        public static int GetZIndex(DependencyObject element)
        {
            int ret = NoesisGUI_PINVOKE.Panel_GetZIndex(DependencyObject.getCPtr(element));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return(ret);
        }
        public static float GetVerticalOffset(DependencyObject obj)
        {
            float ret = NoesisGUI_PINVOKE.ToolTipService_GetVerticalOffset(DependencyObject.getCPtr(obj));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return(ret);
        }
Ejemplo n.º 8
0
        public static ItemsControl GetItemsOwner(DependencyObject itemsHost)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.ItemsControl_GetItemsOwner(DependencyObject.getCPtr(itemsHost));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return((ItemsControl)Noesis.Extend.GetProxy(cPtr, false));
        }
        public static object GetToolTip(DependencyObject obj)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.ToolTipService_GetToolTip(DependencyObject.getCPtr(obj));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return(Noesis.Extend.GetProxy(cPtr, false));
        }
        public static bool GetShowOnDisabled(DependencyObject obj)
        {
            bool ret = NoesisGUI_PINVOKE.ToolTipService_GetShowOnDisabled(DependencyObject.getCPtr(obj));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return(ret);
        }
        public static bool GetIsOverflowItem(DependencyObject element)
        {
            bool ret = NoesisGUI_PINVOKE.ToolBar_GetIsOverflowItem(DependencyObject.getCPtr(element));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return(ret);
        }
        public static float GetFontSize(DependencyObject element)
        {
            float ret = NoesisGUI_PINVOKE.TextElement_GetFontSize(DependencyObject.getCPtr(element));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return(ret);
        }
        public static Binding GetBinding(DependencyObject target, DependencyProperty dp)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.BindingOperations_GetBinding(DependencyObject.getCPtr(target), DependencyProperty.getCPtr(dp));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return((Binding)Noesis.Extend.GetProxy(cPtr, false));
        }
        public static VisualStateGroupCollection GetVisualStateGroups(DependencyObject obj)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.VisualStateManager_GetVisualStateGroups(DependencyObject.getCPtr(obj));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return((VisualStateGroupCollection)Noesis.Extend.GetProxy(cPtr, false));
        }
        public static int GetInitialShowDelay(DependencyObject obj)
        {
            int ret = NoesisGUI_PINVOKE.ToolTipService_GetInitialShowDelay(DependencyObject.getCPtr(obj));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return(ret);
        }
        public static VirtualizationCacheLength GetCacheLength(DependencyObject element)
        {
            IntPtr ret = NoesisGUI_PINVOKE.VirtualizingPanel_GetCacheLength(DependencyObject.getCPtr(element));

            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <VirtualizationCacheLength>(ret));
            }
            else
            {
                return(new VirtualizationCacheLength());
            }
        }
Ejemplo n.º 17
0
        public static Rect GetPlacementRectangle(DependencyObject obj)
        {
            IntPtr ret = NoesisGUI_PINVOKE.ToolTipService_GetPlacementRectangle(DependencyObject.getCPtr(obj));

            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Rect>(ret));
            }
            else
            {
                return(new Rect());
            }
        }
Ejemplo n.º 18
0
        public static string GetTargetName(DependencyObject element)
        {
            IntPtr strPtr = NoesisGUI_PINVOKE.Storyboard_GetTargetName(DependencyObject.getCPtr(element));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            string str = Noesis.Extend.StringFromNativeUtf8(strPtr);
            return(str);
        }
        public static BaseExpression SetBinding(DependencyObject target, DependencyProperty dp, BindingBase binding)
        {
            IntPtr         cPtr = NoesisGUI_PINVOKE.BindingOperations_SetBinding(DependencyObject.getCPtr(target), DependencyProperty.getCPtr(dp), BindingBase.getCPtr(binding));
            BaseExpression ret  = (cPtr == IntPtr.Zero) ? null : new BaseExpression(cPtr, false);

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return(ret);
        }
Ejemplo n.º 20
0
        public static Rect GetPlacementRectangle(DependencyObject obj)
        {
            IntPtr ret = NoesisGUI_PINVOKE.ContextMenuService_GetPlacementRectangle(DependencyObject.getCPtr(obj));

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Rect>(ret));
            }
            else
            {
                return(new Rect());
            }
        }
Ejemplo n.º 21
0
 public static Rect GetPlacementRectangle(DependencyObject obj)
 {
     if (obj == null)
     {
         throw new ArgumentNullException("obj");
     }
     {
         IntPtr ret = NoesisGUI_PINVOKE.ToolTipService_GetPlacementRectangle(DependencyObject.getCPtr(obj));
         if (ret != IntPtr.Zero)
         {
             return(Marshal.PtrToStructure <Rect>(ret));
         }
         else
         {
             return(new Rect());
         }
     }
 }
        public static Rect GetPlacementRectangle(DependencyObject obj)
        {
            IntPtr ret = NoesisGUI_PINVOKE.ToolTipService_GetPlacementRectangle(DependencyObject.getCPtr(obj));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <Rect>(ret));
            }
            else
            {
                return(new Rect());
            }
        }
        public static VirtualizationCacheLength GetCacheLength(DependencyObject element)
        {
            IntPtr ret = NoesisGUI_PINVOKE.VirtualizingPanel_GetCacheLength(DependencyObject.getCPtr(element));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            if (ret != IntPtr.Zero)
            {
                return(Marshal.PtrToStructure <VirtualizationCacheLength>(ret));
            }
            else
            {
                return(new VirtualizationCacheLength());
            }
        }
Ejemplo n.º 24
0
 public static UIElement GetPlacementTarget(DependencyObject obj)
 {
     if (obj == null)
     {
         throw new ArgumentNullException("obj");
     }
     {
         IntPtr cPtr = NoesisGUI_PINVOKE.ContextMenuService_GetPlacementTarget(DependencyObject.getCPtr(obj));
         return((UIElement)Noesis.Extend.GetProxy(cPtr, false));
     }
 }
Ejemplo n.º 25
0
 public static PlacementMode GetPlacement(DependencyObject obj)
 {
     if (obj == null)
     {
         throw new ArgumentNullException("obj");
     }
     {
         PlacementMode ret = (PlacementMode)NoesisGUI_PINVOKE.ContextMenuService_GetPlacement(DependencyObject.getCPtr(obj));
         return(ret);
     }
 }
Ejemplo n.º 26
0
 private static void DoDragDropHelper(DependencyObject source, object data,
                                      DragDropEffects allowedEffects, int callbackId, Callback_DragDropCompleted callback)
 {
     DragDrop_DoDragDrop(DependencyObject.getCPtr(source), Extend.GetInstanceHandle(data),
                         (int)allowedEffects, callbackId, callback);
 }
Ejemplo n.º 27
0
        public static KeyboardNavigationMode GetDirectionalNavigation(DependencyObject element)
        {
            KeyboardNavigationMode ret = (KeyboardNavigationMode)NoesisGUI_PINVOKE.KeyboardNavigation_GetDirectionalNavigation(DependencyObject.getCPtr(element));

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 28
0
 public static void SetDesiredFrameRate(DependencyObject timeline, int rate)
 {
     NoesisGUI_PINVOKE.Timeline_SetDesiredFrameRate(DependencyObject.getCPtr(timeline), rate);
 }
Ejemplo n.º 29
0
        public static int GetDesiredFrameRate(DependencyObject timeline)
        {
            int ret = NoesisGUI_PINVOKE.Timeline_GetDesiredFrameRate(DependencyObject.getCPtr(timeline));

            return(ret);
        }
Ejemplo n.º 30
0
 public static bool GetIsContainerVirtualizable(DependencyObject element)
 {
     if (element == null)
     {
         throw new ArgumentNullException("element");
     }
     {
         bool ret = NoesisGUI_PINVOKE.VirtualizingPanel_GetIsContainerVirtualizable(DependencyObject.getCPtr(element));
         return(ret);
     }
 }