172 references to IsNull
PresentationCore (172)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (12)
461
bool handleNeedsCreation = handle.
IsNull
;
523
Debug.Assert(!handle.
IsNull
);
553
Debug.Assert(!handle.
IsNull
);
951
return !_handle.
IsNull
;
1288
if (_head._value.
IsNull
)
1331
if (!_head._value.
IsNull
)
1441
else if (!_head._value.
IsNull
)
1542
if (!duplicate.
IsNull
)
1605
return !GetHandle(channel).
IsNull
;
1905
Debug.Assert(!hCompositionNode.
IsNull
);
1931
Debug.Assert(!hCompositionNode.
IsNull
);
2109
Debug.Assert(!hCompositionNode.
IsNull
);
System\Windows\InterOp\HwndTarget.cs (1)
835
if (!hWorldTransform.
IsNull
)
System\Windows\Media\Animation\Animatable.cs (1)
336
if (!resource.GetHandle(mediaContext.Channel).
IsNull
)
System\Windows\Media\Animation\AnimationStorage.cs (2)
232
if (!targetResource.GetHandle(channel).
IsNull
)
266
if (!targetResource.GetHandle(channel).
IsNull
)
System\Windows\Media\BitmapCacheBrush.cs (1)
90
if (!resource.GetHandle(mediaContext.Channel).
IsNull
)
System\Windows\Media\Effects\Generated\BlurEffect.cs (1)
178
if (hRadiusAnimations.
IsNull
)
System\Windows\Media\Effects\Generated\DropShadowEffect.cs (5)
248
if (hShadowDepthAnimations.
IsNull
)
253
if (hColorAnimations.
IsNull
)
258
if (hDirectionAnimations.
IsNull
)
263
if (hOpacityAnimations.
IsNull
)
268
if (hBlurRadiusAnimations.
IsNull
)
System\Windows\Media\Effects\Generated\ImplicitInputBrush.cs (1)
143
if (hOpacityAnimations.
IsNull
)
System\Windows\Media\Effects\Generated\ShaderEffect.cs (1)
100
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Effects\ShaderEffect.cs (2)
541
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
714
Debug.Assert(!hBrush.
IsNull
|| ss._brush == null, "If brush isn't null, hBrush better not be");
System\Windows\Media\Generated\BitmapCache.cs (1)
185
if (hRenderAtScaleAnimations.
IsNull
)
System\Windows\Media\Generated\BitmapCacheBrush.cs (3)
112
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
173
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
356
if (hOpacityAnimations.
IsNull
)
System\Windows\Media\Generated\Brush.cs (2)
115
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
163
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\CombinedGeometry.cs (2)
112
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
160
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\DashStyle.cs (1)
173
if (hOffsetAnimations.
IsNull
)
System\Windows\Media\Generated\DrawingBrush.cs (4)
105
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
214
if (hOpacityAnimations.
IsNull
)
223
if (hViewportAnimations.
IsNull
)
228
if (hViewboxAnimations.
IsNull
)
System\Windows\Media\Generated\DrawingGroup.cs (8)
125
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
196
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
251
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
299
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
347
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
600
if (hOpacityAnimations.
IsNull
)
726
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
751
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\DrawingImage.cs (1)
105
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\EllipseGeometry.cs (3)
204
if (hRadiusXAnimations.
IsNull
)
209
if (hRadiusYAnimations.
IsNull
)
214
if (hCenterAnimations.
IsNull
)
System\Windows\Media\Generated\Geometry.cs (1)
110
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\GeometryDrawing.cs (3)
105
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
153
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
201
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\GeometryGroup.cs (3)
132
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
370
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
395
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\GlyphRunDrawing.cs (2)
86
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
134
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\ImageBrush.cs (4)
105
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
214
if (hOpacityAnimations.
IsNull
)
223
if (hViewportAnimations.
IsNull
)
228
if (hViewboxAnimations.
IsNull
)
System\Windows\Media\Generated\ImageDrawing.cs (2)
105
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
211
if (hRectAnimations.
IsNull
)
System\Windows\Media\Generated\LineGeometry.cs (2)
181
if (hStartPointAnimations.
IsNull
)
186
if (hEndPointAnimations.
IsNull
)
System\Windows\Media\Generated\MatrixTransform.cs (1)
141
if (hMatrixAnimations.
IsNull
)
System\Windows\Media\Generated\Pen.cs (3)
105
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
195
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
386
if (hThicknessAnimations.
IsNull
)
System\Windows\Media\Generated\RectangleGeometry.cs (3)
204
if (hRadiusXAnimations.
IsNull
)
209
if (hRadiusYAnimations.
IsNull
)
214
if (hRectAnimations.
IsNull
)
System\Windows\Media\Generated\RotateTransform.cs (3)
187
if (hAngleAnimations.
IsNull
)
192
if (hCenterXAnimations.
IsNull
)
197
if (hCenterYAnimations.
IsNull
)
System\Windows\Media\Generated\ScaleTransform.cs (4)
210
if (hScaleXAnimations.
IsNull
)
215
if (hScaleYAnimations.
IsNull
)
220
if (hCenterXAnimations.
IsNull
)
225
if (hCenterYAnimations.
IsNull
)
System\Windows\Media\Generated\SkewTransform.cs (4)
210
if (hAngleXAnimations.
IsNull
)
215
if (hAngleYAnimations.
IsNull
)
220
if (hCenterXAnimations.
IsNull
)
225
if (hCenterYAnimations.
IsNull
)
System\Windows\Media\Generated\SolidColorBrush.cs (2)
170
if (hOpacityAnimations.
IsNull
)
177
if (hColorAnimations.
IsNull
)
System\Windows\Media\Generated\TransformGroup.cs (3)
125
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
330
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
355
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\TranslateTransform.cs (2)
164
if (hXAnimations.
IsNull
)
169
if (hYAnimations.
IsNull
)
System\Windows\Media\Generated\VideoDrawing.cs (2)
86
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
192
if (hRectAnimations.
IsNull
)
System\Windows\Media\Generated\VisualBrush.cs (4)
111
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
246
if (hOpacityAnimations.
IsNull
)
255
if (hViewportAnimations.
IsNull
)
260
if (hViewboxAnimations.
IsNull
)
System\Windows\Media\HostVisual.cs (2)
210
Debug.Assert(!targetsHandle.
IsNull
);
304
if (!targetsHandle.
IsNull
)
System\Windows\Media\Renderer.cs (3)
124
if (!rootHandle.
IsNull
)
139
if (!deviceTransformHandle.
IsNull
)
148
if (!targetHandle.
IsNull
)
System\Windows\Media\Visual.cs (1)
1168
&& !ctx.Root.
IsNull
)
System\Windows\Media\VisualBrush.cs (1)
90
if (!resource.GetHandle(mediaContext.Channel).
IsNull
)
System\Windows\Media\VisualProxy.cs (2)
116
return !_head.Handle.
IsNull
;
120
return !_tail[index].Handle.
IsNull
;
System\Windows\Media3D\Generated\AmbientLight.cs (1)
137
if (hColorAnimations.
IsNull
)
System\Windows\Media3D\Generated\AxisAngleRotation3D.cs (2)
166
if (hAxisAnimations.
IsNull
)
171
if (hAngleAnimations.
IsNull
)
System\Windows\Media3D\Generated\Camera.cs (1)
103
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\DiffuseMaterial.cs (1)
117
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\DirectionalLight.cs (2)
157
if (hColorAnimations.
IsNull
)
162
if (hDirectionAnimations.
IsNull
)
System\Windows\Media3D\Generated\EmissiveMaterial.cs (1)
110
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\GeometryModel3D.cs (3)
103
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
153
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
203
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\MaterialGroup.cs (3)
123
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
328
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
353
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\Model3D.cs (1)
103
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\Model3DGroup.cs (3)
123
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
345
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
370
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\OrthographicCamera.cs (6)
161
if (hNearPlaneDistanceAnimations.
IsNull
)
166
if (hFarPlaneDistanceAnimations.
IsNull
)
171
if (hPositionAnimations.
IsNull
)
176
if (hLookDirectionAnimations.
IsNull
)
181
if (hUpDirectionAnimations.
IsNull
)
186
if (hWidthAnimations.
IsNull
)
System\Windows\Media3D\Generated\PerspectiveCamera.cs (6)
161
if (hNearPlaneDistanceAnimations.
IsNull
)
166
if (hFarPlaneDistanceAnimations.
IsNull
)
171
if (hPositionAnimations.
IsNull
)
176
if (hLookDirectionAnimations.
IsNull
)
181
if (hUpDirectionAnimations.
IsNull
)
186
if (hFieldOfViewAnimations.
IsNull
)
System\Windows\Media3D\Generated\PointLight.cs (6)
142
if (hColorAnimations.
IsNull
)
147
if (hPositionAnimations.
IsNull
)
152
if (hRangeAnimations.
IsNull
)
157
if (hConstantAttenuationAnimations.
IsNull
)
162
if (hLinearAttenuationAnimations.
IsNull
)
167
if (hQuadraticAttenuationAnimations.
IsNull
)
System\Windows\Media3D\Generated\QuaternionRotation3D.cs (1)
142
if (hQuaternionAnimations.
IsNull
)
System\Windows\Media3D\Generated\RotateTransform3D.cs (4)
132
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
266
if (hCenterXAnimations.
IsNull
)
271
if (hCenterYAnimations.
IsNull
)
276
if (hCenterZAnimations.
IsNull
)
System\Windows\Media3D\Generated\ScaleTransform3D.cs (6)
272
if (hScaleXAnimations.
IsNull
)
277
if (hScaleYAnimations.
IsNull
)
282
if (hScaleZAnimations.
IsNull
)
287
if (hCenterXAnimations.
IsNull
)
292
if (hCenterYAnimations.
IsNull
)
297
if (hCenterZAnimations.
IsNull
)
System\Windows\Media3D\Generated\SpecularMaterial.cs (1)
110
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\SpotLight.cs (9)
208
if (hColorAnimations.
IsNull
)
213
if (hPositionAnimations.
IsNull
)
218
if (hRangeAnimations.
IsNull
)
223
if (hConstantAttenuationAnimations.
IsNull
)
228
if (hLinearAttenuationAnimations.
IsNull
)
233
if (hQuadraticAttenuationAnimations.
IsNull
)
238
if (hDirectionAnimations.
IsNull
)
243
if (hOuterConeAngleAnimations.
IsNull
)
248
if (hInnerConeAngleAnimations.
IsNull
)
System\Windows\Media3D\Generated\Transform3DGroup.cs (3)
123
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
328
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
353
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\TranslateTransform3D.cs (3)
194
if (hOffsetXAnimations.
IsNull
)
199
if (hOffsetYAnimations.
IsNull
)
204
if (hOffsetZAnimations.
IsNull
)