46 references to HostUtils
WindowsFormsIntegration (46)
System\Windows\Integration\Convert.cs (3)
278if (HostUtils.IsZero(value)) { value = 1.0; } 280return value * HostUtils.PixelsPerInch(orientation) / systemWindowsPixelsPerInch; 286if (HostUtils.IsZero(value)) { value = 1.0; }
System\Windows\Integration\ElementHost.cs (19)
103proposedSize = HostUtils.IntersectSizes(HostUtils.ConvertZeroOrOneToUnbounded(proposedSize), HostUtils.ConvertZeroToUnbounded(MaximumSize)); 104proposedSize = HostUtils.UnionSizes(proposedSize, MinimumSize); 107Vector scale = (Child == null ? new Vector(1d, 1d) : HostUtils.GetScale(Child)); 120prefSize = HostUtils.IntersectSizes(prefSize, HostUtils.ConvertZeroToUnbounded(MaximumSize)); 121prefSize = HostUtils.UnionSizes(prefSize, MinimumSize); 317Vector scale = HostUtils.GetScale(childFrameworkElement); 319SD.Size priorMaxSize = HostUtils.ConvertZeroToUnbounded(MaximumSize); 322MaximumSize = HostUtils.ConvertUnboundedToZero(new SD.Size(maxWidth, maxHeight)); 416SWMI.RenderTargetBitmap renderBitmap = HostUtils.GetBitmapForFrameworkElement(_decorator); 419using (SD.Bitmap bitmap = HostUtils.GetBitmapFromRenderTargetBitmap(this, renderBitmap, new Point(0, 0))) 644Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside SyncHwndSrcImeStatus(), this = " + this); 681Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Verbose, "SetChildElementsIsImeEnabled, element = " + element); 702Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside OnHwndSrcWmInputLangChange(), this = " + this); 731Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside OnHwndSrcWmImeNotify(), this = " + this); 762Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Verbose, "Inside OnHwndSourceMsgNotifyElementHost()"); 788if (HostUtils.LOWORD(m.WParam) == NativeMethods.WM_CREATE)
System\Windows\Integration\ElementHostPropertyMap.cs (2)
74using (SD.Bitmap parentBitmap = HostUtils.GetCoveredPortionOfBitmap(parent, host)) 82using (SD.Bitmap elementHostBitmap = HostUtils.GetBitmapOfControl(host, host))
System\Windows\Integration\HostUtils.cs (13)
243if (HostUtils.IsRotated(host)) 247hostPoint = HostUtils.TransformToParentPoint(host, frameworkElementAncestor, 250parentPoint = HostUtils.TransformToParentPoint(frameworkElementAncestor, frameworkElementAncestor, 256hostPoint = HostUtils.TransformToParentPoint(host, frameworkElementAncestor, 259parentPoint = HostUtils.TransformToParentPoint(frameworkElementAncestor, frameworkElementAncestor, 319HostUtils.PixelsPerInch(Orientation.Horizontal), 320HostUtils.PixelsPerInch(Orientation.Vertical), 355Point pOrigin = HostUtils.TransformToRootPoint(visual, new Point(0.0, 0.0)); 356Point pX = HostUtils.TransformToRootPoint(visual, new Point(1.0, 0.0)); 357Point pY = HostUtils.TransformToRootPoint(visual, new Point(0.0, 1.0)); 368Point pOrigin = HostUtils.TransformToRootPoint(visual, new Point(0.0, 0.0)); 369Point pX = HostUtils.TransformToRootPoint(visual, new Point(1.0, 0.0)); 370Point pY = HostUtils.TransformToRootPoint(visual, new Point(0.0, 1.0));
System\Windows\Integration\WindowsFormsHost.cs (3)
92Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside SyncChildImeEnabledContext(), this = " + this); 199Vector newScale = HostUtils.GetScale(this, out skewed); 806FrameworkElement cursorSource = HostUtils.GetCursorSource(_host, forceCursorMapped);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (6)
82if (HostUtils.BrushIsSolidOpaque(brush)) 90SD.Bitmap backgroundImage = HostUtils.GetBitmapForWindowsFormsHost(windowsFormsHost, brush); 91HostUtils.SetBackgroundImage(adapter, child, backgroundImage); 169if (HostUtils.FontWeightIsBold(Host.FontWeight)) 190if (HostUtils.FontWeightIsBold((SW.FontWeight)value)) 352if (HostUtils.FontWeightIsBold(Host.FontWeight))