private double LongestPageSide(MapFrame mf) { double wd = mf.GetWidth(); double ht = mf.GetHeight(); return(wd > ht ? wd : ht); }