摘要:
public class FullScreenCommand : ICommand{ public event EventHandler CanExecuteChanged; public bool CanExecute(object parameter) { bool isFullScreen = (bool.TryParse(parameter.ToString(), out isFullScreen)) ? isFullScreen : true; return Application.Current.Host.Content.IsFullScreen != isFullScreen; 阅读全文