46 references to HostUtils
WindowsFormsIntegration (46)
System\Windows\Integration\Convert.cs (3)
275if (HostUtils.IsZero(value)) { value = 1.0; } 277return value * HostUtils.PixelsPerInch(orientation) / systemWindowsPixelsPerInch; 283if (HostUtils.IsZero(value)) { value = 1.0; }
System\Windows\Integration\ElementHost.cs (19)
99proposedSize = HostUtils.IntersectSizes(HostUtils.ConvertZeroOrOneToUnbounded(proposedSize), HostUtils.ConvertZeroToUnbounded(MaximumSize)); 100proposedSize = HostUtils.UnionSizes(proposedSize, MinimumSize); 103Vector scale = (Child == null ? new Vector(1d, 1d) : HostUtils.GetScale(Child)); 116prefSize = HostUtils.IntersectSizes(prefSize, HostUtils.ConvertZeroToUnbounded(MaximumSize)); 117prefSize = HostUtils.UnionSizes(prefSize, MinimumSize); 312Vector scale = HostUtils.GetScale(childFrameworkElement); 314SD.Size priorMaxSize = HostUtils.ConvertZeroToUnbounded(MaximumSize); 317MaximumSize = HostUtils.ConvertUnboundedToZero(new SD.Size(maxWidth, maxHeight)); 411SWMI.RenderTargetBitmap renderBitmap = HostUtils.GetBitmapForFrameworkElement(_decorator); 414using (SD.Bitmap bitmap = HostUtils.GetBitmapFromRenderTargetBitmap(this, renderBitmap, new Point(0, 0))) 640Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside SyncHwndSrcImeStatus(), this = " + this); 677Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Verbose, "SetChildElementsIsImeEnabled, element = " + element); 698Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside OnHwndSrcWmInputLangChange(), this = " + this); 727Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside OnHwndSrcWmImeNotify(), this = " + this); 758Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Verbose, "Inside OnHwndSourceMsgNotifyElementHost()"); 784if (HostUtils.LOWORD(m.WParam) == NativeMethods.WM_CREATE)
System\Windows\Integration\ElementHostPropertyMap.cs (2)
69using (SD.Bitmap parentBitmap = HostUtils.GetCoveredPortionOfBitmap(parent, host)) 77using (SD.Bitmap elementHostBitmap = HostUtils.GetBitmapOfControl(host, host))
System\Windows\Integration\HostUtils.cs (13)
238if (HostUtils.IsRotated(host)) 242hostPoint = HostUtils.TransformToParentPoint(host, frameworkElementAncestor, 245parentPoint = HostUtils.TransformToParentPoint(frameworkElementAncestor, frameworkElementAncestor, 251hostPoint = HostUtils.TransformToParentPoint(host, frameworkElementAncestor, 254parentPoint = HostUtils.TransformToParentPoint(frameworkElementAncestor, frameworkElementAncestor, 314HostUtils.PixelsPerInch(Orientation.Horizontal), 315HostUtils.PixelsPerInch(Orientation.Vertical), 350Point pOrigin = HostUtils.TransformToRootPoint(visual, new Point(0.0, 0.0)); 351Point pX = HostUtils.TransformToRootPoint(visual, new Point(1.0, 0.0)); 352Point pY = HostUtils.TransformToRootPoint(visual, new Point(0.0, 1.0)); 363Point pOrigin = HostUtils.TransformToRootPoint(visual, new Point(0.0, 0.0)); 364Point pX = HostUtils.TransformToRootPoint(visual, new Point(1.0, 0.0)); 365Point pY = HostUtils.TransformToRootPoint(visual, new Point(0.0, 1.0));
System\Windows\Integration\WindowsFormsHost.cs (3)
89Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside SyncChildImeEnabledContext(), this = " + this); 193Vector newScale = HostUtils.GetScale(this, out skewed); 782FrameworkElement cursorSource = HostUtils.GetCursorSource(_host, forceCursorMapped);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (6)
80if (HostUtils.BrushIsSolidOpaque(brush)) 88SD.Bitmap backgroundImage = HostUtils.GetBitmapForWindowsFormsHost(windowsFormsHost, brush); 89HostUtils.SetBackgroundImage(adapter, child, backgroundImage); 167if (HostUtils.FontWeightIsBold(Host.FontWeight)) 188if (HostUtils.FontWeightIsBold((SW.FontWeight)value)) 350if (HostUtils.FontWeightIsBold(Host.FontWeight))