StoryTellerUI.DialogWindow.calculateStartup C# (CSharp) Method

calculateStartup() private static method

private static calculateStartup ( FrameworkElement content, Window owner ) : Point
content System.Windows.FrameworkElement
owner System.Windows.Window
return Point
        private static Point calculateStartup(FrameworkElement content, Window owner)
        {
            int top = Math.Floor(owner.Height/4).Zeroed();
            double left = Math.Floor(owner.Width/2) - content.Width.Zeroed();

            var relative = new Point(top, left);
            return relative;

            //return owner.PointToScreen(relative);
        }