public override void Execute(object parameter = null) { if (parameter is Fluent.ToggleButton) { ToggleButton = (ToggleButton)parameter; } CommandLogger.EndReplay(); }