コード例 #1
0
ファイル: PropertyViewItem.cs プロジェクト: whztt07/xenko
 /// <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;
 }