示例#1
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            Button           btn  = sender as Button;
            PropertyNodeItem item = btn.Tag as PropertyNodeItem;

            MessageBox.Show(item.DisplayName);
        }
示例#2
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            PropertyNodeItem item = this.DataContext as PropertyNodeItem;

            this._item.DisplayName = item.DisplayName;
        }
示例#3
0
 public void Bind(PropertyNodeItem item)
 {
     this.DataContext = null;
     this._item       = item;
     this.DataContext = item.Clone();
 }
示例#4
0
 public void Bind(PropertyNodeItem item)
 {
     this.DataContext = null;
     this._item = item;
     this.DataContext = item.Clone();
 }