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)
100proposedSize = HostUtils.IntersectSizes(HostUtils.ConvertZeroOrOneToUnbounded(proposedSize), HostUtils.ConvertZeroToUnbounded(MaximumSize)); 101proposedSize = HostUtils.UnionSizes(proposedSize, MinimumSize); 104Vector scale = (Child == null ? new Vector(1d, 1d) : HostUtils.GetScale(Child)); 117prefSize = HostUtils.IntersectSizes(prefSize, HostUtils.ConvertZeroToUnbounded(MaximumSize)); 118prefSize = HostUtils.UnionSizes(prefSize, MinimumSize); 314Vector scale = HostUtils.GetScale(childFrameworkElement); 316SD.Size priorMaxSize = HostUtils.ConvertZeroToUnbounded(MaximumSize); 319MaximumSize = HostUtils.ConvertUnboundedToZero(new SD.Size(maxWidth, maxHeight)); 413SWMI.RenderTargetBitmap renderBitmap = HostUtils.GetBitmapForFrameworkElement(_decorator); 416using (SD.Bitmap bitmap = HostUtils.GetBitmapFromRenderTargetBitmap(this, renderBitmap, new Point(0, 0))) 641Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside SyncHwndSrcImeStatus(), this = " + this); 678Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Verbose, "SetChildElementsIsImeEnabled, element = " + element); 699Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside OnHwndSrcWmInputLangChange(), this = " + this); 728Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside OnHwndSrcWmImeNotify(), this = " + this); 759Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Verbose, "Inside OnHwndSourceMsgNotifyElementHost()"); 785if (HostUtils.LOWORD(m.WParam) == NativeMethods.WM_CREATE)
System\Windows\Integration\ElementHostPropertyMap.cs (2)
72using (SD.Bitmap parentBitmap = HostUtils.GetCoveredPortionOfBitmap(parent, host)) 80using (SD.Bitmap elementHostBitmap = HostUtils.GetBitmapOfControl(host, host))
System\Windows\Integration\HostUtils.cs (13)
239if (HostUtils.IsRotated(host)) 243hostPoint = HostUtils.TransformToParentPoint(host, frameworkElementAncestor, 246parentPoint = HostUtils.TransformToParentPoint(frameworkElementAncestor, frameworkElementAncestor, 252hostPoint = HostUtils.TransformToParentPoint(host, frameworkElementAncestor, 255parentPoint = HostUtils.TransformToParentPoint(frameworkElementAncestor, frameworkElementAncestor, 315HostUtils.PixelsPerInch(Orientation.Horizontal), 316HostUtils.PixelsPerInch(Orientation.Vertical), 351Point pOrigin = HostUtils.TransformToRootPoint(visual, new Point(0.0, 0.0)); 352Point pX = HostUtils.TransformToRootPoint(visual, new Point(1.0, 0.0)); 353Point pY = HostUtils.TransformToRootPoint(visual, new Point(0.0, 1.0)); 364Point pOrigin = HostUtils.TransformToRootPoint(visual, new Point(0.0, 0.0)); 365Point pX = HostUtils.TransformToRootPoint(visual, new Point(1.0, 0.0)); 366Point pY = HostUtils.TransformToRootPoint(visual, new Point(0.0, 1.0));
System\Windows\Integration\WindowsFormsHost.cs (3)
90Debug.WriteLineIf(HostUtils.ImeMode.Level >= TraceLevel.Info, "Inside SyncChildImeEnabledContext(), this = " + this); 197Vector newScale = HostUtils.GetScale(this, out skewed); 804FrameworkElement cursorSource = HostUtils.GetCursorSource(_host, forceCursorMapped);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (6)
81if (HostUtils.BrushIsSolidOpaque(brush)) 89SD.Bitmap backgroundImage = HostUtils.GetBitmapForWindowsFormsHost(windowsFormsHost, brush); 90HostUtils.SetBackgroundImage(adapter, child, backgroundImage); 168if (HostUtils.FontWeightIsBold(Host.FontWeight)) 189if (HostUtils.FontWeightIsBold((SW.FontWeight)value)) 351if (HostUtils.FontWeightIsBold(Host.FontWeight))