Ejemplo n.º 1
0
        public static void AddCompiledBinding(object source, string propertypath, object destination, string destPropertypath, SynchronizationContext applyBindingContext, IBinderConverter converter)
        {
            Check.IsNotNull("source", source);
            Check.IsNotNull("propertypath", propertypath);
            Check.IsNotNull("destination", destination);
            Check.IsNotNull("destPropertypath", destPropertypath);
            string[] pathItems = propertypath.Split('.');


            PropertyPathBindingItem item = new PropertyPathBindingItem(source, propertypath, destination, destPropertypath, converter, applyBindingContext);

            _Bindings.Add(item);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Add a binding between
        /// </summary>
        /// <param name="source">source to observe</param>
        /// <param name="propertypath">path to observe</param>
        /// <param name="destination">destination object</param>
        /// <param name="destPropertypath">destination path</param>
        /// source property should be convertible to destination property type.
        public static void AddCompiledBinding(object source, string propertypath, object destination, string destPropertypath)
        {
            Check.IsNotNull("source", source);
            Check.IsNotNull("propertypath", propertypath);
            Check.IsNotNull("destination", destination);
            Check.IsNotNull("destPropertypath", destPropertypath);
            string[] pathItems = propertypath.Split('.');


            PropertyPathBindingItem item = new PropertyPathBindingItem(source, propertypath, destination, destPropertypath, null, null);

            _Bindings.Add(item);
        }