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