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