/// <summary> /// Create the exit confirmation dialogs /// </summary> public void CreateExitDialogs() { if (MenuType == CornerMenuType.NoCornerMenus) return; var offset = 100.0; ExitDialogUpperRight = new ExitDialog("ExitDialogUpperRight"); ExitDialogUpperRight.Visibility = Visibility.Hidden; Canvas.SetRight(ExitDialogUpperRight, offset); Canvas.SetTop(ExitDialogUpperRight, offset); Canvas.SetZIndex(ExitDialogUpperRight, 1); ExitDialogUpperRight.LayoutTransform = new RotateTransform(-90); InterfaceLayoutRoot.Children.Add(ExitDialogUpperRight); ExitDialogBottomLeft = new ExitDialog("ExitDialogBottomLeft"); ExitDialogBottomLeft.Visibility = Visibility.Hidden; Canvas.SetLeft(ExitDialogBottomLeft, offset); Canvas.SetBottom(ExitDialogBottomLeft, offset); Canvas.SetZIndex(ExitDialogBottomLeft, 1); ExitDialogBottomLeft.LayoutTransform = new RotateTransform(90); InterfaceLayoutRoot.Children.Add(ExitDialogBottomLeft); ExitDialogUpperLeft = null; ExitDialogBottomRight = null; if (MenuType == CornerMenuType.FourCornerMenus) { ExitDialogUpperLeft = new ExitDialog("ExitDialogUpperLeft"); ExitDialogUpperLeft.Visibility = Visibility.Hidden; Canvas.SetLeft(ExitDialogUpperLeft, offset); Canvas.SetTop(ExitDialogUpperLeft, offset); Canvas.SetZIndex(ExitDialogUpperLeft, 1); ExitDialogUpperLeft.LayoutTransform = new RotateTransform(180); InterfaceLayoutRoot.Children.Add(ExitDialogUpperLeft); ExitDialogBottomRight = new ExitDialog("ExitDialogBottomRight"); ExitDialogBottomRight.Visibility = Visibility.Hidden; Canvas.SetRight(ExitDialogBottomRight, offset); Canvas.SetBottom(ExitDialogBottomRight, offset); Canvas.SetZIndex(ExitDialogBottomRight, 1); InterfaceLayoutRoot.Children.Add(ExitDialogBottomRight); } }
public void ExitDialogConstructorTest() { string name = string.Empty; // TODO: Initialize to an appropriate value ExitDialog target = new ExitDialog(name); Assert.Inconclusive("TODO: Implement code to verify target"); }