摘要: 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; 阅读全文
posted @ 2011-06-11 17:01 zhh 阅读(147) 评论(0) 推荐(0) 编辑