/// <summary> /// Initializes a new instance of the <see cref="PropertyViewItem"/> class. /// </summary> /// <param name="propertyView">The <see cref="PropertyView"/> instance in which this <see cref="PropertyViewItem"/> is contained.</param> public PropertyViewItem(PropertyView propertyView) { if (propertyView == null) throw new ArgumentNullException(nameof(propertyView)); PropertyView = propertyView; PreviewMouseMove += propertyView.ItemMouseMove; IsKeyboardFocusWithinChanged += propertyView.OnIsKeyboardFocusWithinChanged; }
public PropertyViewItem(PropertyView propertyView) { if (propertyView == null) { throw new ArgumentNullException("propertyView"); } this.propertyView = propertyView; PreviewMouseMove += propertyView.ItemMouseMove; }
/// <summary> /// Initializes a new instance of the <see cref="PropertyViewItem"/> class. /// </summary> /// <param name="propertyView">The <see cref="PropertyView"/> instance in which this <see cref="PropertyViewItem"/> is contained.</param> public PropertyViewItem([NotNull] PropertyView propertyView) { if (propertyView == null) { throw new ArgumentNullException(nameof(propertyView)); } PropertyView = propertyView; PreviewMouseMove += propertyView.ItemMouseMove; IsKeyboardFocusWithinChanged += propertyView.OnIsKeyboardFocusWithinChanged; }