public void SetValue(DependencyProperty dp, object value)
        {
            if (dp == null)
            {
                throw new Exception("Can't set value, DependencyProperty is null");
            }

            Type dpType = dp.PropertyType;

            SetDelegate setDelegate;

            if (dpType.GetTypeInfo().IsEnum)
            {
                _setFunctions.TryGetValue(typeof(int), out setDelegate);
                setDelegate(swigCPtr.Handle, DependencyProperty.getCPtr(dp).Handle, (int)Convert.ToInt64(value));
            }
            else if (_setFunctions.TryGetValue(dpType, out setDelegate))
            {
                setDelegate(swigCPtr.Handle, DependencyProperty.getCPtr(dp).Handle, value);
            }
            else
            {
                Noesis_DependencySet_BaseComponent(swigCPtr.Handle, DependencyProperty.getCPtr(dp).Handle,
                                                   Noesis.Extend.GetInstanceHandle(value).Handle);
            }
        }
        public object GetValue(DependencyProperty dp)
        {
            if (dp == null)
            {
                throw new Exception("Can't get value, DependencyProperty is null");
            }

            Type dpType = dp.PropertyType;

            GetDelegate getDelegate;

            if (dpType.GetTypeInfo().IsEnum)
            {
                _getFunctions.TryGetValue(typeof(int), out getDelegate);
                int value = (int)getDelegate(swigCPtr.Handle, DependencyProperty.getCPtr(dp).Handle);
                return(Enum.ToObject(dpType, value));
            }
            else if (_getFunctions.TryGetValue(dpType, out getDelegate))
            {
                return(getDelegate(swigCPtr.Handle, DependencyProperty.getCPtr(dp).Handle));
            }
            else
            {
                IntPtr ptr = Noesis_DependencyGet_BaseComponent(swigCPtr.Handle, DependencyProperty.getCPtr(dp).Handle);
                return(Noesis.Extend.GetProxy(ptr, false));
            }
        }
Exemplo n.º 3
0
 public void CoerceValue(DependencyProperty dp)
 {
     NoesisGUI_PINVOKE.DependencyObject_CoerceValue(swigCPtr, DependencyProperty.getCPtr(dp));
     if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
     {
         throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 4
0
 public void SetCurrentValue(DependencyProperty dp, object value)
 {
     NoesisGUI_PINVOKE.DependencyObject_SetCurrentValue(swigCPtr, DependencyProperty.getCPtr(dp), Noesis.Extend.GetInstanceHandle(value));
     if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
     {
         throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 5
0
 private void InvalidatePropertyHelper(DependencyProperty dp)
 {
     NoesisGUI_PINVOKE.DependencyObject_InvalidatePropertyHelper(swigCPtr, DependencyProperty.getCPtr(dp));
     if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
     {
         throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 6
0
     private void InvalidatePropertyHelper(DependencyProperty dp)
     {
         NoesisGUI_PINVOKE.DependencyObject_InvalidatePropertyHelper(swigCPtr, DependencyProperty.getCPtr(dp));
 #if UNITY_EDITOR || NOESIS_API
         if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
         {
             throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
         }
 #endif
     }
Exemplo n.º 7
0
     public void CoerceValue(DependencyProperty dp)
     {
         NoesisGUI_PINVOKE.DependencyObject_CoerceValue(swigCPtr, DependencyProperty.getCPtr(dp));
 #if UNITY_EDITOR || NOESIS_API
         if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
         {
             throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
         }
 #endif
     }
Exemplo n.º 8
0
        public static Binding GetBinding(DependencyObject target, DependencyProperty dp)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.BindingOperations_GetBinding(DependencyObject.getCPtr(target), DependencyProperty.getCPtr(dp));

            return((Binding)Noesis.Extend.GetProxy(cPtr, false));
        }
Exemplo n.º 9
0
 public static void ClearBinding(DependencyObject target, DependencyProperty dp)
 {
     NoesisGUI_PINVOKE.BindingOperations_ClearBinding(DependencyObject.getCPtr(target), DependencyProperty.getCPtr(dp));
 }
Exemplo n.º 10
0
 public void SetCurrentValue(DependencyProperty dp, object value)
 {
     NoesisGUI_PINVOKE.DependencyObject_SetCurrentValue(swigCPtr, DependencyProperty.getCPtr(dp), Noesis.Extend.GetInstanceHandle(value));
 }
Exemplo n.º 11
0
        private IntPtr ReadLocalValueHelper(DependencyProperty dp)
        {
            IntPtr ret = NoesisGUI_PINVOKE.DependencyObject_ReadLocalValueHelper(swigCPtr, DependencyProperty.getCPtr(dp));

            return(ret);
        }
Exemplo n.º 12
0
 public void CoerceValue(DependencyProperty dp)
 {
     NoesisGUI_PINVOKE.DependencyObject_CoerceValue(swigCPtr, DependencyProperty.getCPtr(dp));
 }
Exemplo n.º 13
0
 public void ClearAnimation(DependencyProperty dp)
 {
     NoesisGUI_PINVOKE.DependencyObject_ClearAnimation(swigCPtr, DependencyProperty.getCPtr(dp));
 }
Exemplo n.º 14
0
        public BindingExpressionBase SetBinding(DependencyProperty dp, BindingBase binding)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.FrameworkElement_SetBinding__SWIG_0(swigCPtr, DependencyProperty.getCPtr(dp), BindingBase.getCPtr(binding));
            BindingExpressionBase ret = (cPtr == IntPtr.Zero) ? null : new BindingExpressionBase(cPtr, false);

            return(ret);
        }
Exemplo n.º 15
0
 public TemplateBindingExtension(DependencyProperty dp) : this(NoesisGUI_PINVOKE.new_TemplateBindingExtension__SWIG_1(DependencyProperty.getCPtr(dp)), true)
 {
 }
Exemplo n.º 16
0
 public TemplateBindingExtension(DependencyProperty dp) : this(NoesisGUI_PINVOKE.new_TemplateBindingExtension__SWIG_1(DependencyProperty.getCPtr(dp)), true)
 {
     if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
     {
         throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 17
0
        public static BindingExpressionBase SetBinding(DependencyObject target, DependencyProperty dp, BindingBase binding)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.BindingOperations_SetBinding(DependencyObject.getCPtr(target), DependencyProperty.getCPtr(dp), BindingBase.getCPtr(binding));
            BindingExpressionBase ret = (cPtr == IntPtr.Zero) ? null : new BindingExpressionBase(cPtr, false);

            return(ret);
        }
        public object ProvideValue(object targetObject, DependencyProperty targetProperty)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.Binding_ProvideValue(swigCPtr, Noesis.Extend.GetInstanceHandle(targetObject), DependencyProperty.getCPtr(targetProperty));

    #if UNITY_EDITOR || NOESIS_API
            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
    #endif
            return(Noesis.Extend.GetProxy(cPtr, false));
        }
     public Binding(DependencyProperty path, object source) : this(NoesisGUI_PINVOKE.new_Binding__SWIG_4(DependencyProperty.getCPtr(path), Noesis.Extend.GetInstanceHandle(source)), true)
     {
 #if UNITY_EDITOR || NOESIS_API
         if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
         {
             throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
         }
 #endif
     }
Exemplo n.º 20
0
        public object ReadLocalValue(DependencyProperty dp)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.DependencyObject_ReadLocalValue(swigCPtr, DependencyProperty.getCPtr(dp));

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            return(Noesis.Extend.GetProxy(cPtr, false));
        }
Exemplo n.º 21
0
        public BindingExpression GetBindingExpression(DependencyProperty dp)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.FrameworkElement_GetBindingExpression(swigCPtr, DependencyProperty.getCPtr(dp));

            return((BindingExpression)Noesis.Extend.GetProxy(cPtr, false));
        }
Exemplo n.º 22
0
        public static BindingExpression GetBindingExpression(DependencyObject target, DependencyProperty dp)
        {
            IntPtr            cPtr = NoesisGUI_PINVOKE.BindingOperations_GetBindingExpression(DependencyObject.getCPtr(target), DependencyProperty.getCPtr(dp));
            BindingExpression ret  = (cPtr == IntPtr.Zero) ? null : new BindingExpression(cPtr, false);

            return(ret);
        }
Exemplo n.º 23
0
        public static bool IsDataBound(DependencyObject target, DependencyProperty dp)
        {
            bool ret = NoesisGUI_PINVOKE.BindingOperations_IsDataBound(DependencyObject.getCPtr(target), DependencyProperty.getCPtr(dp));

            return(ret);
        }
Exemplo n.º 24
0
        public BindingExpression SetBinding(DependencyProperty dp, string path)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.FrameworkElement_SetBinding__SWIG_1(swigCPtr, DependencyProperty.getCPtr(dp), path != null ? path : string.Empty);

            return((BindingExpression)Noesis.Extend.GetProxy(cPtr, false));
        }
Exemplo n.º 25
0
 public PropertyPath(DependencyProperty dp) : this(NoesisGUI_PINVOKE.new_PropertyPath__SWIG_2(DependencyProperty.getCPtr(dp)), true)
 {
 }
     public TemplateBinding(DependencyProperty dp) : this(NoesisGUI_PINVOKE.new_TemplateBinding__SWIG_1(DependencyProperty.getCPtr(dp)), true)
     {
 #if UNITY_EDITOR || NOESIS_API
         if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
         {
             throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
         }
 #endif
     }
Exemplo n.º 27
0
        public object ProvideValue(object targetObject, DependencyProperty targetProperty)
        {
            IntPtr cPtr = NoesisGUI_PINVOKE.TemplateBindingExtension_ProvideValue(swigCPtr, Noesis.Extend.GetInstanceHandle(targetObject), DependencyProperty.getCPtr(targetProperty));

            if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
            {
                throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
            }
            return(Noesis.Extend.GetProxy(cPtr, false));
        }
Exemplo n.º 28
0
 private void InvalidatePropertyHelper(DependencyProperty dp)
 {
     NoesisGUI_PINVOKE.DependencyObject_InvalidatePropertyHelper(swigCPtr, DependencyProperty.getCPtr(dp));
 }
Exemplo n.º 29
0
        private IntPtr ProvideValueHelper(object targetObject, DependencyProperty targetProperty)
        {
            IntPtr ret = NoesisGUI_PINVOKE.StaticResourceExtension_ProvideValueHelper(swigCPtr, Noesis.Extend.GetInstanceHandle(targetObject), DependencyProperty.getCPtr(targetProperty));

            return(ret);
        }
Exemplo n.º 30
0
        public Expression GetExpression(DependencyProperty dp)
        {
            IntPtr     cPtr = NoesisGUI_PINVOKE.DependencyObject_GetExpression(swigCPtr, DependencyProperty.getCPtr(dp));
            Expression ret  = (cPtr == IntPtr.Zero) ? null : new Expression(cPtr, false);

            return(ret);
        }