public static PathExpression Parse (DependencyObject source, string path)
		{
			var paths = path.Split ('.');
			
			PathExpression expression = new SelfExpression (source);
			
			foreach (var p in paths) {
				expression = new PropertyExpression (expression, p);
			}

			return expression;
		}
示例#2
0
        public static void SetBinding(IDependencyProperty source, IAttachedPropertiesContainer container, object item, string propertyName, IValueConverter converter = null)
        {
            var self = new SelfExpression(container);

            new Binding(new PropertyExpression(source), new AttachedPropertyExpression(self, item, propertyName), converter ?? new EmptyConverter());
        }
		public static void SetBinding (IDependencyProperty source, IAttachedPropertiesContainer container, object item, string propertyName, IValueConverter converter = null)
		{
			var self = new SelfExpression (container);

			new Binding (new PropertyExpression (source), new AttachedPropertyExpression (self, item, propertyName), converter ?? new EmptyConverter ());
		}