private void MainPage_SizeChanged(object sender, SizeChangedEventArgs e) { // this computes the current orientation and spanned status QueryOrientation(); Debug.WriteLine("Width of Window is {0}", Window.Current.Bounds.Width); Debug.WriteLine("Height of Window is {0}", Window.Current.Bounds.Height); Debug.WriteLine("Actual Width of MainView is {0}", MainView.ActualWidth); Debug.WriteLine("Actual Height of MainView is {0}", MainView.ActualHeight); Debug.WriteLine(string.Format("CurrentOrientation is {0}", CurrentOrientation.ToString())); Debug.WriteLine(string.Format("ApplicationIsSpanned = {0}", ApplicationIsSpanned.ToString())); Debug.WriteLine("------------------------------------------------"); }
/// <summary> /// /// </summary> /// <returns></returns> public override string ToString() { return(Constants.ABREVIATION_AVENTURER + Constants.SEPERATOR + Name + Constants.SEPERATOR + AdventurerPosition?.AxeHorizontal + Constants.SEPERATOR + AdventurerPosition?.AxeVertical + Constants.SEPERATOR + CurrentOrientation.ToString() + Constants.SEPERATOR + NumberTreasureFound); }