title: Caliburn.Micro - ShowDialog() how to close the dialog?
body: <p><strong>EDIT:</strong></p>
  
  <p>New Information, just managed to get a logger working  (I honestly had no idea cm had one!) and i'm given this message when attempting to use <code>TryClose()</code>.</p>
  
  <pre><code>TryClose requires a parent IConductor or a view with a Close method or IsOpen property
  </code></pre>
  
  <p>I have been stuck on this for a number of days now, and research has turned up zero, I tried posting a question previously about this issue but it received no answers so i assume I didn't word it correctly.</p>
  
  <p>I have a view and viewmodel <strong>ContentView/Model</strong> which has the following code in them:</p>
  
  <p><strong>ContentView</strong>:</p>
  
  <pre><code>&lt;MenuItem Header="New Project" x:Name="OpenProject" cal:Message.Attach="[Event Click] = [Action NewProject()]"/&gt;
  </code></pre>
  
  <p><strong>ContentViewModel</strong>:</p>
  
  <pre><code>public void NewProject()
      {
          NewProjectViewModel viewModel = new NewProjectViewModel(_projectManager);
          _windowManager.ShowWindow(viewModel);
          //If the result is true, we have a new project, otherwise they cancelled the window.
          if (viewModel.Result)
          {
              Project newP = new Project(0, viewModel.ProjectNo, viewModel.ProjectName, 0, 0);
              _projectManager.Insert(newP);
          }
      }
  </code></pre>
  
  <p>and the viewmodel <strong>NewProjectViewModel</strong> has the following:</p>
  
  <pre><code> public void Create()
      {
          this.Result = true;
          TryClose(true);
      }
  </code></pre>
  
  <p>which is called in the same was as previously using an message.attach on the <strong>OK</strong> button of the dialog.</p>
  
  <p>However the issue is that <code>TryClose()</code> always fails to close the dialog, and as i don't have the source of caliburn.micro i can't debug inside <code>TryClose()</code> however doing <code>(GetView() As Window).Close()</code> also fails because <code>GetView()</code> always returns null.</p>
  
  <p>I'm at a complete loss as to how i can close this dialog,  so any help or suggestions would be greatly appreciated.</p>
  
  <p><strong>EDIT:</strong>
  Since i seem to be getting no answers on this, where as previous questions do, I'll assume i have information missing. In an attempt to understand the issue i think it may have something to with using the view first approach.</p>
  
  <p>In the <strong>NewProjectView</strong> i have the following:</p>
  
  <pre><code>             xmlns:cal="http://www.caliburnproject.org"
           cal:Bind.Model="ShippingClient.ViewModels.NewProjectViewModel"
  </code></pre>
  
  <p>This is used to bind the viewmodel rather than the automatic way that is usually used, perhaps this is why <code>GetView()</code> returns null?</p>