32 references to Convert
WindowsFormsIntegration (32)
System\Windows\Integration\ApplicationInterop.cs (2)
94
Message m =
Convert
.ToSystemWindowsFormsMessage(msg);
283
SW.Interop.MSG msg2 =
Convert
.ToSystemWindowsInteropMSG(msg);
System\Windows\Integration\Convert.cs (8)
211
return font.SizeInPoints *
Convert
.systemWindowsPixelsPerInch /
Convert
.systemDrawingPixelsPerInch;
216
return initialSize *
Convert
.systemDrawingPixelsPerInch /
Convert
.systemWindowsPixelsPerInch;
261
return new SD.Size(
Convert
.ToBoundedInt(size.Width),
262
Convert
.ToBoundedInt(size.Height));
269
return new SD.Size(
Convert
.ToBoundedInt(size.Width),
270
Convert
.ToBoundedInt(size.Height));
System\Windows\Integration\ElementHost.cs (5)
106
Size constraints =
Convert
.ToSystemWindowsSize(proposedSize, scale);
114
SD.Size prefSize =
Convert
.ToSystemDrawingSize(_decorator.DesiredSize, scale);
314
SD.Size maxElementSize =
Convert
.ToSystemDrawingSize(new Size(childFrameworkElement.MaxWidth, childFrameworkElement.MaxHeight), scale);
460
MSG msg2 =
Convert
.ToSystemWindowsInteropMSG(msg);
461
SWI.ModifierKeys modifiers =
Convert
.ToSystemWindowsInputModifierKeys(keyData);
System\Windows\Integration\ElementHostPropertyMap.cs (7)
72
host.HostContainerInternal.Background = new SWM.ImageBrush(
Convert
.ToSystemWindowsMediaImagingBitmapImage(parentBitmap));
80
host.HostContainerInternal.Background = new SWM.ImageBrush(
Convert
.ToSystemWindowsMediaImagingBitmapImage(elementHostBitmap));
99
SWI.Cursor toCursor =
Convert
.ToSystemWindowsInputCursor(fromCursor);
134
adapter.SetValue(SWC.Control.FontSizeProperty,
Convert
.SystemDrawingFontToSystemWindowsFontSize(wfFont));
135
adapter.SetValue(SWC.Control.FontFamilyProperty,
Convert
.ToSystemWindowsFontFamily(wfFont.FontFamily));
136
adapter.SetValue(SWC.Control.FontWeightProperty,
Convert
.ToSystemWindowsFontWeight(wfFont));
137
adapter.SetValue(SWC.Control.FontStyleProperty,
Convert
.ToSystemWindowsFontStyle(wfFont));
System\Windows\Integration\WindowsFormsHost.cs (5)
247
SD.Size constraintSize =
Convert
.ConstraintToSystemDrawingSize(constraint, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);
249
System.Windows.Size returnSize =
Convert
.ToSystemWindowsSize(preferredSize, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);
280
SD.Size targetSize =
Convert
.ConstraintToSystemDrawingSize(finalSize, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);
286
Size returnSize =
Convert
.ToSystemWindowsSize(Child.Size, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);
804
return
Convert
.ToSystemWindowsFormsCursor(cursorSource.Cursor);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (5)
208
double pointSize =
Convert
.FontSizeToSystemDrawing((double)value);
257
childControl.Padding =
Convert
.ToSystemWindowsFormsPadding((SW.Thickness)value);
328
return (float)(
Convert
.FontSizeToSystemDrawing(Host.FontSize));
384
wfColor =
Convert
.ToSystemDrawingColor(brushColor);
399
wfColor =
Convert
.ToSystemDrawingColor(brushColor);