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