Ejemplo n.º 1
0
        /// <summary>
        ///     Gets teh restricted size of a popup & computes which dimensions were affected.
        /// </summary>
        private Size GetPopupSizeRestrictions(Popup popup, Size desiredSize, out bool restrictWidth, out bool restrictHeight)
        {
            Size restrictedSize = popup.RestrictSize(desiredSize);

            restrictWidth  = Math.Abs(restrictedSize.Width - desiredSize.Width) > Popup.Tolerance;
            restrictHeight = Math.Abs(restrictedSize.Height - desiredSize.Height) > Popup.Tolerance;
            return(restrictedSize);
        }
        // Token: 0x06005F32 RID: 24370 RVA: 0x001AB0A0 File Offset: 0x001A92A0
        private Size GetPopupSizeRestrictions(Popup popup, Size desiredSize, out bool restrictWidth, out bool restrictHeight)
        {
            Size result = popup.RestrictSize(desiredSize);

            restrictWidth  = (Math.Abs(result.Width - desiredSize.Width) > 0.01);
            restrictHeight = (Math.Abs(result.Height - desiredSize.Height) > 0.01);
            return(result);
        }
Ejemplo n.º 3
0
 /// <summary>
 ///     Gets teh restricted size of a popup & computes which dimensions were affected.
 /// </summary>
 private Size GetPopupSizeRestrictions(Popup popup, Size desiredSize, out bool restrictWidth, out bool restrictHeight)
 {
     Size restrictedSize = popup.RestrictSize(desiredSize);
     restrictWidth = Math.Abs(restrictedSize.Width - desiredSize.Width) > Popup.Tolerance;
     restrictHeight = Math.Abs(restrictedSize.Height - desiredSize.Height) > Popup.Tolerance;
     return restrictedSize;
 }