internal bool EnsureUnsnapped()
{
// FilePicker APIs will not work if the application is in a snapped state.
// If an app wants to show a FilePicker while snapped, it must attempt to unsnap first
bool unsnapped = ((ApplicationView.Value != ApplicationViewState.Snapped) || ApplicationView.TryUnsnap());
if (!unsnapped)
{
Messenger.Default.Send(new GenericMessage<LbMessage>(this, new LbMessage()
{
MessageType = LbMessageType.ERROR,
Data = LbError.UnSnappedToSave
}));
}
return unsnapped;
}