예제 #1
0
        public override async void ViewWillDisappear(bool animated)
        {
            base.ViewWillDisappear(animated);

            try {
                if (DocumentReference != null && DocumentReference.IsOpen && IsPreviewing)
                {
                    Console.WriteLine("CLOSING PREVIEW DOCUMENT");
                    UnbindDocument();
                    UnbindUI();
                    await DocumentReference.Close();
                }
            } catch (Exception ex) {
                Log.Error(ex);
            }
        }