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