예제 #1
0
        /// <summary>
        /// Gets the <see cref="T:Size"/> uncovered by the SIP when it is shown.
        /// </summary>
        /// <param name="phoneApplicationFrame">The <see cref="T:PhoneApplicationFrame"/>.</param>
        /// <returns>The <see cref="T:Size"/>.</returns>
        public static Size GetSipUncoveredSize(this PhoneApplicationFrame phoneApplicationFrame)
        {
            double width  = phoneApplicationFrame.GetUsefulWidth();
            double height = phoneApplicationFrame.GetUsefulHeight() - phoneApplicationFrame.GetSipCoveredSize().Height;

            return(new Size(width, height));
        }