System.Windows.Data.BindingExpressionBase.BindingExpressionBase C# (CSharp) Method

BindingExpressionBase() private method

private BindingExpressionBase ( Binding binding, DependencyObject target, DependencyProperty property ) : System.Collections
binding Binding
target System.Windows.DependencyObject
property System.Windows.DependencyProperty
return System.Collections
		internal BindingExpressionBase (Binding binding, DependencyObject target, DependencyProperty property)
		{
			Binding = binding;
			Target = target;
			Property = property;

			mentorDataContextChangedCallback = OnNativeMentorDataContextChangedSafe;

			bool bindsToView = property == FrameworkElement.DataContextProperty || property.PropertyType == typeof (IEnumerable) || property.PropertyType == typeof (ICollectionView);
			PropertyPathWalker = new PropertyPathWalker (Binding.Path.Path, binding.BindsDirectlyToSource, bindsToView);
			if (Binding.Mode != BindingMode.OneTime)
				PropertyPathWalker.ValueChanged += PropertyPathValueChanged;
		}