예제 #1
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);
        }
예제 #2
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 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);
        }