示例#1
0
 /// <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;
 }
示例#2
0
 public PropertyViewItem(PropertyView propertyView)
 {
     if (propertyView == null)
     {
         throw new ArgumentNullException("propertyView");
     }
     this.propertyView = propertyView;
     PreviewMouseMove += propertyView.ItemMouseMove;
 }
示例#3
0
 /// <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;
 }