32 references to Convert
WindowsFormsIntegration (32)
System\Windows\Integration\ApplicationInterop.cs (2)
96
Message m =
Convert
.ToSystemWindowsFormsMessage(msg);
285
SW.Interop.MSG msg2 =
Convert
.ToSystemWindowsInteropMSG(msg);
System\Windows\Integration\Convert.cs (8)
213
return font.SizeInPoints *
Convert
.systemWindowsPixelsPerInch /
Convert
.systemDrawingPixelsPerInch;
218
return initialSize *
Convert
.systemDrawingPixelsPerInch /
Convert
.systemWindowsPixelsPerInch;
263
return new SD.Size(
Convert
.ToBoundedInt(size.Width),
264
Convert
.ToBoundedInt(size.Height));
271
return new SD.Size(
Convert
.ToBoundedInt(size.Width),
272
Convert
.ToBoundedInt(size.Height));
System\Windows\Integration\ElementHost.cs (5)
109
Size constraints =
Convert
.ToSystemWindowsSize(proposedSize, scale);
117
SD.Size prefSize =
Convert
.ToSystemDrawingSize(_decorator.DesiredSize, scale);
318
SD.Size maxElementSize =
Convert
.ToSystemDrawingSize(new Size(childFrameworkElement.MaxWidth, childFrameworkElement.MaxHeight), scale);
464
MSG msg2 =
Convert
.ToSystemWindowsInteropMSG(msg);
465
SWI.ModifierKeys modifiers =
Convert
.ToSystemWindowsInputModifierKeys(keyData);
System\Windows\Integration\ElementHostPropertyMap.cs (7)
76
host.HostContainerInternal.Background = new SWM.ImageBrush(
Convert
.ToSystemWindowsMediaImagingBitmapImage(parentBitmap));
84
host.HostContainerInternal.Background = new SWM.ImageBrush(
Convert
.ToSystemWindowsMediaImagingBitmapImage(elementHostBitmap));
103
SWI.Cursor toCursor =
Convert
.ToSystemWindowsInputCursor(fromCursor);
138
adapter.SetValue(SWC.Control.FontSizeProperty,
Convert
.SystemDrawingFontToSystemWindowsFontSize(wfFont));
139
adapter.SetValue(SWC.Control.FontFamilyProperty,
Convert
.ToSystemWindowsFontFamily(wfFont.FontFamily));
140
adapter.SetValue(SWC.Control.FontWeightProperty,
Convert
.ToSystemWindowsFontWeight(wfFont));
141
adapter.SetValue(SWC.Control.FontStyleProperty,
Convert
.ToSystemWindowsFontStyle(wfFont));
System\Windows\Integration\WindowsFormsHost.cs (5)
249
SD.Size constraintSize =
Convert
.ConstraintToSystemDrawingSize(constraint, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);
251
System.Windows.Size returnSize =
Convert
.ToSystemWindowsSize(preferredSize, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);
282
SD.Size targetSize =
Convert
.ConstraintToSystemDrawingSize(finalSize, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);
288
Size returnSize =
Convert
.ToSystemWindowsSize(Child.Size, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);
809
return
Convert
.ToSystemWindowsFormsCursor(cursorSource.Cursor);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (5)
209
double pointSize =
Convert
.FontSizeToSystemDrawing((double)value);
258
childControl.Padding =
Convert
.ToSystemWindowsFormsPadding((SW.Thickness)value);
329
return (float)(
Convert
.FontSizeToSystemDrawing(Host.FontSize));
385
wfColor =
Convert
.ToSystemDrawingColor(brushColor);
400
wfColor =
Convert
.ToSystemDrawingColor(brushColor);