1 write to Source
PresentationFramework (1)
System\Windows\Documents\FixedElement.cs (1)
299Source = new System.Windows.Media.Imaging.BitmapImage(source)
25 references to Source
PresentationFramework (25)
System\Windows\Controls\Image.cs (3)
102/// <seealso cref="Image.Source" /> 248ImageSource imageSource = Source; 309ImageSource imageSource = Source;
System\Windows\Documents\FixedElement.cs (2)
301image.Width = image.Source.Width; 302image.Height = image.Source.Height;
System\Windows\Documents\FixedHighlight.cs (1)
110if (im != null && im.Source != null)
System\Windows\Documents\FixedSOMImage.cs (4)
49if (image.Source is BitmapImage) 51BitmapImage imageSource = image.Source as BitmapImage; 54else if (image.Source is BitmapFrame) 56BitmapFrame imageSource = image.Source as BitmapFrame;
System\windows\Documents\TextEditorCopyPaste.cs (2)
125if (image != null && image.Source is System.Windows.Media.Imaging.BitmapSource) 127dataObject.SetImage((System.Windows.Media.Imaging.BitmapSource)image.Source);
System\Windows\Documents\TextRange.cs (1)
1030System.Windows.Media.Imaging.BitmapSource bitmapSource = (System.Windows.Media.Imaging.BitmapSource)image.Source;
System\Windows\Documents\TextRangeSerialization.cs (2)
1154if (image.Source != null && !string.IsNullOrEmpty(image.Source.ToString()))
System\Windows\Documents\WpfPayload.cs (10)
411if (image.Source is BitmapSource) 413return (BitmapSource)image.Source; 416Invariant.Assert(image.Source is DrawingImage); 418DrawingImage di = (DrawingImage)image.Source; 438string imageContentType = GetImageContentType(image.Source.ToString()); 482if (image.Source == null) 487if (string.IsNullOrEmpty(image.Source.ToString())) 501string imageContentType = GetImageContentType(image.Source.ToString()); 509Invariant.Assert(imageContentType == GetImageContentType(_images[i].Source.ToString()), $"Image content types expected to be consistent: {imageContentType} vs. {GetImageContentType(_images[i].Source.ToString())}");