private void ProjectItemSelected(object sender, RoutedPropertyChangedEventArgs <object> e) { SelectedProjectItem = ((TreeView)sender).SelectedItem; SelectedProjectValue = ((TreeView)sender).SelectedValue; SelectedProjectItemChanged?.Invoke(this, e.NewValue); }
protected virtual void OnSelectedProjectItemChanged(EventArgs e) { SelectedProjectItemChanged?.Invoke(this, e); }