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