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