172 references to IsNull
PresentationCore (172)
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (12)
479
bool handleNeedsCreation = handle.
IsNull
;
541
Debug.Assert(!handle.
IsNull
);
571
Debug.Assert(!handle.
IsNull
);
969
return !_handle.
IsNull
;
1306
if (_head._value.
IsNull
)
1349
if (!_head._value.
IsNull
)
1459
else if (!_head._value.
IsNull
)
1560
if (!duplicate.
IsNull
)
1623
return !GetHandle(channel).
IsNull
;
1923
Debug.Assert(!hCompositionNode.
IsNull
);
1949
Debug.Assert(!hCompositionNode.
IsNull
);
2127
Debug.Assert(!hCompositionNode.
IsNull
);
System\Windows\InterOp\HwndTarget.cs (1)
842
if (!hWorldTransform.
IsNull
)
System\Windows\Media\Animation\Animatable.cs (1)
361
if (!resource.GetHandle(mediaContext.Channel).
IsNull
)
System\Windows\Media\Animation\AnimationStorage.cs (2)
239
if (!targetResource.GetHandle(channel).
IsNull
)
273
if (!targetResource.GetHandle(channel).
IsNull
)
System\Windows\Media\BitmapCacheBrush.cs (1)
99
if (!resource.GetHandle(mediaContext.Channel).
IsNull
)
System\Windows\Media\Effects\Generated\BlurEffect.cs (1)
201
if (hRadiusAnimations.
IsNull
)
System\Windows\Media\Effects\Generated\DropShadowEffect.cs (5)
271
if (hShadowDepthAnimations.
IsNull
)
276
if (hColorAnimations.
IsNull
)
281
if (hDirectionAnimations.
IsNull
)
286
if (hOpacityAnimations.
IsNull
)
291
if (hBlurRadiusAnimations.
IsNull
)
System\Windows\Media\Effects\Generated\ImplicitInputBrush.cs (1)
166
if (hOpacityAnimations.
IsNull
)
System\Windows\Media\Effects\Generated\ShaderEffect.cs (1)
122
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Effects\ShaderEffect.cs (2)
558
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
731
Debug.Assert(!hBrush.
IsNull
|| ss._brush == null, "If brush isn't null, hBrush better not be");
System\Windows\Media\Generated\BitmapCache.cs (1)
203
if (hRenderAtScaleAnimations.
IsNull
)
System\Windows\Media\Generated\BitmapCacheBrush.cs (3)
126
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
187
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
370
if (hOpacityAnimations.
IsNull
)
System\Windows\Media\Generated\Brush.cs (2)
128
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
172
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\CombinedGeometry.cs (2)
126
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
170
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\DashStyle.cs (1)
187
if (hOffsetAnimations.
IsNull
)
System\Windows\Media\Generated\DrawingBrush.cs (4)
119
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
228
if (hOpacityAnimations.
IsNull
)
237
if (hViewportAnimations.
IsNull
)
242
if (hViewboxAnimations.
IsNull
)
System\Windows\Media\Generated\DrawingGroup.cs (8)
139
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
206
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
257
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
301
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
345
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
590
if (hOpacityAnimations.
IsNull
)
711
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
739
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\DrawingImage.cs (1)
119
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\EllipseGeometry.cs (3)
222
if (hRadiusXAnimations.
IsNull
)
227
if (hRadiusYAnimations.
IsNull
)
232
if (hCenterAnimations.
IsNull
)
System\Windows\Media\Generated\Geometry.cs (1)
126
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\GeometryDrawing.cs (3)
119
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
163
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
207
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\GeometryGroup.cs (3)
146
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
379
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
407
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\GlyphRunDrawing.cs (2)
104
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
148
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\ImageBrush.cs (4)
119
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
228
if (hOpacityAnimations.
IsNull
)
237
if (hViewportAnimations.
IsNull
)
242
if (hViewboxAnimations.
IsNull
)
System\Windows\Media\Generated\ImageDrawing.cs (2)
119
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
225
if (hRectAnimations.
IsNull
)
System\Windows\Media\Generated\LineGeometry.cs (2)
199
if (hStartPointAnimations.
IsNull
)
204
if (hEndPointAnimations.
IsNull
)
System\Windows\Media\Generated\MatrixTransform.cs (1)
159
if (hMatrixAnimations.
IsNull
)
System\Windows\Media\Generated\Pen.cs (3)
119
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
205
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
396
if (hThicknessAnimations.
IsNull
)
System\Windows\Media\Generated\RectangleGeometry.cs (3)
222
if (hRadiusXAnimations.
IsNull
)
227
if (hRadiusYAnimations.
IsNull
)
232
if (hRectAnimations.
IsNull
)
System\Windows\Media\Generated\RotateTransform.cs (3)
205
if (hAngleAnimations.
IsNull
)
210
if (hCenterXAnimations.
IsNull
)
215
if (hCenterYAnimations.
IsNull
)
System\Windows\Media\Generated\ScaleTransform.cs (4)
228
if (hScaleXAnimations.
IsNull
)
233
if (hScaleYAnimations.
IsNull
)
238
if (hCenterXAnimations.
IsNull
)
243
if (hCenterYAnimations.
IsNull
)
System\Windows\Media\Generated\SkewTransform.cs (4)
228
if (hAngleXAnimations.
IsNull
)
233
if (hAngleYAnimations.
IsNull
)
238
if (hCenterXAnimations.
IsNull
)
243
if (hCenterYAnimations.
IsNull
)
System\Windows\Media\Generated\SolidColorBrush.cs (2)
188
if (hOpacityAnimations.
IsNull
)
195
if (hColorAnimations.
IsNull
)
System\Windows\Media\Generated\TransformGroup.cs (3)
139
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
335
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
363
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
System\Windows\Media\Generated\TranslateTransform.cs (2)
182
if (hXAnimations.
IsNull
)
187
if (hYAnimations.
IsNull
)
System\Windows\Media\Generated\VideoDrawing.cs (2)
104
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
210
if (hRectAnimations.
IsNull
)
System\Windows\Media\Generated\VisualBrush.cs (4)
129
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
264
if (hOpacityAnimations.
IsNull
)
273
if (hViewportAnimations.
IsNull
)
278
if (hViewboxAnimations.
IsNull
)
System\Windows\Media\HostVisual.cs (2)
227
Debug.Assert(!targetsHandle.
IsNull
);
321
if (!targetsHandle.
IsNull
)
System\Windows\Media\Renderer.cs (3)
137
if (!rootHandle.
IsNull
)
152
if (!deviceTransformHandle.
IsNull
)
161
if (!targetHandle.
IsNull
)
System\Windows\Media\Visual.cs (1)
1190
&& !ctx.Root.
IsNull
)
System\Windows\Media\VisualBrush.cs (1)
100
if (!resource.GetHandle(mediaContext.Channel).
IsNull
)
System\Windows\Media\VisualProxy.cs (2)
125
return !_head.Handle.
IsNull
;
129
return !_tail[index].Handle.
IsNull
;
System\Windows\Media3D\Generated\AmbientLight.cs (1)
153
if (hColorAnimations.
IsNull
)
System\Windows\Media3D\Generated\AxisAngleRotation3D.cs (2)
182
if (hAxisAnimations.
IsNull
)
187
if (hAngleAnimations.
IsNull
)
System\Windows\Media3D\Generated\Camera.cs (1)
115
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\DiffuseMaterial.cs (1)
129
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\DirectionalLight.cs (2)
173
if (hColorAnimations.
IsNull
)
178
if (hDirectionAnimations.
IsNull
)
System\Windows\Media3D\Generated\EmissiveMaterial.cs (1)
122
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\GeometryModel3D.cs (3)
115
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
164
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
213
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\MaterialGroup.cs (3)
135
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
331
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
359
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\Model3D.cs (1)
115
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\Model3DGroup.cs (3)
135
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
352
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
380
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\OrthographicCamera.cs (6)
177
if (hNearPlaneDistanceAnimations.
IsNull
)
182
if (hFarPlaneDistanceAnimations.
IsNull
)
187
if (hPositionAnimations.
IsNull
)
192
if (hLookDirectionAnimations.
IsNull
)
197
if (hUpDirectionAnimations.
IsNull
)
202
if (hWidthAnimations.
IsNull
)
System\Windows\Media3D\Generated\PerspectiveCamera.cs (6)
177
if (hNearPlaneDistanceAnimations.
IsNull
)
182
if (hFarPlaneDistanceAnimations.
IsNull
)
187
if (hPositionAnimations.
IsNull
)
192
if (hLookDirectionAnimations.
IsNull
)
197
if (hUpDirectionAnimations.
IsNull
)
202
if (hFieldOfViewAnimations.
IsNull
)
System\Windows\Media3D\Generated\PointLight.cs (6)
158
if (hColorAnimations.
IsNull
)
163
if (hPositionAnimations.
IsNull
)
168
if (hRangeAnimations.
IsNull
)
173
if (hConstantAttenuationAnimations.
IsNull
)
178
if (hLinearAttenuationAnimations.
IsNull
)
183
if (hQuadraticAttenuationAnimations.
IsNull
)
System\Windows\Media3D\Generated\QuaternionRotation3D.cs (1)
158
if (hQuaternionAnimations.
IsNull
)
System\Windows\Media3D\Generated\RotateTransform3D.cs (4)
144
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
278
if (hCenterXAnimations.
IsNull
)
283
if (hCenterYAnimations.
IsNull
)
288
if (hCenterZAnimations.
IsNull
)
System\Windows\Media3D\Generated\ScaleTransform3D.cs (6)
288
if (hScaleXAnimations.
IsNull
)
293
if (hScaleYAnimations.
IsNull
)
298
if (hScaleZAnimations.
IsNull
)
303
if (hCenterXAnimations.
IsNull
)
308
if (hCenterYAnimations.
IsNull
)
313
if (hCenterZAnimations.
IsNull
)
System\Windows\Media3D\Generated\SpecularMaterial.cs (1)
122
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\SpotLight.cs (9)
224
if (hColorAnimations.
IsNull
)
229
if (hPositionAnimations.
IsNull
)
234
if (hRangeAnimations.
IsNull
)
239
if (hConstantAttenuationAnimations.
IsNull
)
244
if (hLinearAttenuationAnimations.
IsNull
)
249
if (hQuadraticAttenuationAnimations.
IsNull
)
254
if (hDirectionAnimations.
IsNull
)
259
if (hOuterConeAngleAnimations.
IsNull
)
264
if (hInnerConeAngleAnimations.
IsNull
)
System\Windows\Media3D\Generated\Transform3DGroup.cs (3)
135
Debug.Assert(!targetResource.GetHandle(channel).
IsNull
);
331
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
359
Debug.Assert(!thisResource.GetHandle(channel).
IsNull
);
System\Windows\Media3D\Generated\TranslateTransform3D.cs (3)
210
if (hOffsetXAnimations.
IsNull
)
215
if (hOffsetYAnimations.
IsNull
)
220
if (hOffsetZAnimations.
IsNull
)