private void SaveAs_Click(object sender, RoutedEventArgs e)
        {
            PublishApplicationCommand cmd = new PublishApplicationCommand();

            if (cmd.CanExecute(null))
            {
                cmd.Execute(true);
            }
        }
 private void SaveAs_Click(object sender, RoutedEventArgs e)
 {
     PublishApplicationCommand cmd = new PublishApplicationCommand();
     if (cmd.CanExecute(null))
         cmd.Execute(true);
 }