title: Bind Control depending bool
body: <p>I have to accomplish the following task and don't know how to do it at all.</p>
  
  <p>I am using a WizardControl (XCeed Wpf Toolkit) and want to skip one page, depending on a certain state in the ViewModel (let's say a bool-variable).
  To achieve this I have to bind a different Control (a WizardPage) to the previous WizardPage's NextPage DependencyProperty according to this bool-variable. I think this can be done somehow with DataTrigger, but I am not so experienced in this topic. Can someone please help me?</p>
  
  <p>The minimal code sample ist:</p>
  
  <pre><code>&lt;xctk:Wizard&gt;
    &lt;xctkWizardPage x:Name="Page1" NextPage="Page2"/&gt;
    &lt;xctkWizardPage x:Name="Page2"/&gt;
    &lt;xctkWizardPage x:Name="Page3"/&gt;
    &lt;/xctkWizardPage&gt;
  &lt;/xctk:Wizard&gt;
  </code></pre>
  
  <pre><code>public bool Property { get; set; }
  </code></pre>
  
  <p>What I want to do is make the "NextPage" of "Page1" dependant on the "Property", e.g. have "Page2" as NextPage if Property == true, otherwise go to "Page3".</p>
  
  <p>Thank you very much for your help!</p>
  
  <p>Jan</p>