/// <summary> /// Initializes a new instance of the <see cref="SelectProjectItemView"/> class. /// </summary> /// <param name="viewModel"> /// The view Model. /// </param> /// <remarks> /// This constructor can be used to use view-model injection. /// </remarks> public SelectProjectItemView(SelectProjectItemViewModel viewModel) : base(viewModel) { StyleHelper.CreateStyleForwardersForDefaultStyles(Application.Current.Resources, Resources); InitializeComponent(); }
/// <summary> /// Method to invoke when the SelectProjectItem command is executed. /// </summary> private void OnSelectProjectItemExecute() { var vm = new SelectProjectItemViewModel(_rootProjectItem); if (_uiVisualizerService.ShowDialog(vm) ?? false) { Name = vm.SelectedProjectItemPath; } }