/// <summary>
        /// Initializes a new instance of the <see cref="BindingEditorWindow"/> class.
        /// </summary>
        /// <param name="propertyItem">The property item.</param>
        public BindingEditorWindow(PropertyItem propertyItem)
        {
            InitializeComponent();
            _viewModel = new BindingEditorViewModel(propertyItem);
            DataContext = _viewModel;

            tree.SelectedItemChanged += (s, e) => _viewModel.SelectedPathItem = (PathItem)tree.SelectedValue;
        }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BindingEditorWindow"/> class.
        /// </summary>
        /// <param name="propertyItem">The property item.</param>
        public BindingEditorWindow(PropertyItem propertyItem)
        {
            InitializeComponent();
            _viewModel  = new BindingEditorViewModel(propertyItem);
            DataContext = _viewModel;

            tree.SelectedItemChanged += (s, e) => _viewModel.SelectedPathItem = (PathItem)tree.SelectedValue;
        }