private void LayoutChanged(LayoutType state) { _canCloseConversation = state == LayoutType.Overlay; ((DelegateCommand)CloseConversationCommand).RaiseCanExecuteChanged(); }