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