title: Receiving CommandParameter Value in MVVM
body: <p>I am binding my command like:</p>
  
  <pre><code>&lt;Button Command="{Binding NextCommand}" 
      CommandParameter="Hello" 
      Content="Next" /&gt; 
  </code></pre>
  
  <p>Here, I also bind its CommandParameter property, now how to fetch its value from NextCommand.</p>
  
  <pre><code>public ICommand NextCommand
      {
          get
          {
              if (_nextCommand == null)
              {
                  _nextCommand = new RelayCommand(
                      param =&gt; this.DisplayNextPageRecords()
                      //param =&gt; true
                      );
              }
              return _nextCommand;
          }
      }
  </code></pre>
  
  <p>Its function  definition:</p>
  
  <pre><code>public ObservableCollection&lt;PhonesViewModel&gt; DisplayNextPageRecords()
      {
  
              //How to fetch CommandParameter value which is set by 
              //value "Hello" at xaml. I want here "Hello"
              PageNumber++;
              CreatePhones();
              return this.AllPhones;
  
      }
  </code></pre>
  
  <p>How to fetch CommandParameter value?</p>
  
  <p>Thanks in advance.</p>