Example #1
0
 public ZapScroller()
 {
     m_firstCommand = new CommandWrapper(First, canFirst);
     m_previousCommand = new CommandWrapper(Previous, canPrevious);
     m_nextCommand = new CommandWrapper(Next, canNext);
     m_lastCommand = new CommandWrapper(Last, canLast);
 }
Example #2
0
 /// <summary>
 /// Handles the <see cref="E:CommandCanExecuteChanged" /> event.
 /// </summary>
 /// <param name="commandWrapper">The command wrapper.</param>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 private static void OnCommandCanExecuteChanged(CommandWrapper commandWrapper, object sender, EventArgs e)
 {
     ((IActionCommand)commandWrapper.Command).RaiseCanExecuteChanged();
 }