32 references to Convert
WindowsFormsIntegration (32)
System\Windows\Integration\ApplicationInterop.cs (2)
93
Message m =
Convert
.ToSystemWindowsFormsMessage(msg);
282
SW.Interop.MSG msg2 =
Convert
.ToSystemWindowsInteropMSG(msg);
System\Windows\Integration\Convert.cs (8)
210
return font.SizeInPoints *
Convert
.systemWindowsPixelsPerInch /
Convert
.systemDrawingPixelsPerInch;
215
return initialSize *
Convert
.systemDrawingPixelsPerInch /
Convert
.systemWindowsPixelsPerInch;
260
return new SD.Size(
Convert
.ToBoundedInt(size.Width),
261
Convert
.ToBoundedInt(size.Height));
268
return new SD.Size(
Convert
.ToBoundedInt(size.Width),
269
Convert
.ToBoundedInt(size.Height));
System\Windows\Integration\ElementHost.cs (5)
105
Size constraints =
Convert
.ToSystemWindowsSize(proposedSize, scale);
113
SD.Size prefSize =
Convert
.ToSystemDrawingSize(_decorator.DesiredSize, scale);
313
SD.Size maxElementSize =
Convert
.ToSystemDrawingSize(new Size(childFrameworkElement.MaxWidth, childFrameworkElement.MaxHeight), scale);
456
MSG msg2 =
Convert
.ToSystemWindowsInteropMSG(msg);
457
SWI.ModifierKeys modifiers =
Convert
.ToSystemWindowsInputModifierKeys(keyData);
System\Windows\Integration\ElementHostPropertyMap.cs (7)
71
host.HostContainerInternal.Background = new SWM.ImageBrush(
Convert
.ToSystemWindowsMediaImagingBitmapImage(parentBitmap));
79
host.HostContainerInternal.Background = new SWM.ImageBrush(
Convert
.ToSystemWindowsMediaImagingBitmapImage(elementHostBitmap));
98
SWI.Cursor toCursor =
Convert
.ToSystemWindowsInputCursor(fromCursor);
133
adapter.SetValue(SWC.Control.FontSizeProperty,
Convert
.SystemDrawingFontToSystemWindowsFontSize(wfFont));
134
adapter.SetValue(SWC.Control.FontFamilyProperty,
Convert
.ToSystemWindowsFontFamily(wfFont.FontFamily));
135
adapter.SetValue(SWC.Control.FontWeightProperty,
Convert
.ToSystemWindowsFontWeight(wfFont));
136
adapter.SetValue(SWC.Control.FontStyleProperty,
Convert
.ToSystemWindowsFontStyle(wfFont));
System\Windows\Integration\WindowsFormsHost.cs (5)
243
SD.Size constraintSize =
Convert
.ConstraintToSystemDrawingSize(constraint, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);
245
System.Windows.Size returnSize =
Convert
.ToSystemWindowsSize(preferredSize, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);
276
SD.Size targetSize =
Convert
.ConstraintToSystemDrawingSize(finalSize, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);
282
Size returnSize =
Convert
.ToSystemWindowsSize(Child.Size, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);
785
return
Convert
.ToSystemWindowsFormsCursor(cursorSource.Cursor);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (5)
207
double pointSize =
Convert
.FontSizeToSystemDrawing((double)value);
256
childControl.Padding =
Convert
.ToSystemWindowsFormsPadding((SW.Thickness)value);
327
return (float)(
Convert
.FontSizeToSystemDrawing(Host.FontSize));
383
wfColor =
Convert
.ToSystemDrawingColor(brushColor);
398
wfColor =
Convert
.ToSystemDrawingColor(brushColor);