1 write to Source
PresentationFramework (1)
System\Windows\Documents\FixedElement.cs (1)
303image.Source = new System.Windows.Media.Imaging.BitmapImage(source);
25 references to Source
PresentationFramework (25)
System\Windows\Controls\Image.cs (3)
111/// <seealso cref="Image.Source" /> 257ImageSource imageSource = Source; 318ImageSource imageSource = Source;
System\Windows\Documents\FixedElement.cs (2)
304image.Width = image.Source.Width; 305image.Height = image.Source.Height;
System\Windows\Documents\FixedHighlight.cs (1)
116if (im != null && im.Source != null)
System\Windows\Documents\FixedSOMImage.cs (4)
52if (image.Source is BitmapImage) 54BitmapImage imageSource = image.Source as BitmapImage; 57else if (image.Source is BitmapFrame) 59BitmapFrame imageSource = image.Source as BitmapFrame;
System\windows\Documents\TextEditorCopyPaste.cs (2)
139if (image != null && image.Source is System.Windows.Media.Imaging.BitmapSource) 141dataObject.SetImage((System.Windows.Media.Imaging.BitmapSource)image.Source);
System\Windows\Documents\TextRange.cs (1)
1042System.Windows.Media.Imaging.BitmapSource bitmapSource = (System.Windows.Media.Imaging.BitmapSource)image.Source;
System\Windows\Documents\TextRangeSerialization.cs (2)
1161if (image.Source != null && !string.IsNullOrEmpty(image.Source.ToString()))
System\Windows\Documents\WpfPayload.cs (10)
416if (image.Source is BitmapSource) 418return (BitmapSource)image.Source; 421Invariant.Assert(image.Source is DrawingImage); 423DrawingImage di = (DrawingImage)image.Source; 443string imageContentType = GetImageContentType(image.Source.ToString()); 487if (image.Source == null) 492if (string.IsNullOrEmpty(image.Source.ToString())) 506string imageContentType = GetImageContentType(image.Source.ToString()); 514Invariant.Assert(imageContentType == GetImageContentType(_images[i].Source.ToString()), $"Image content types expected to be consistent: {imageContentType} vs. {GetImageContentType(_images[i].Source.ToString())}");