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