CompositionGraphicsDevice.RenderingDeviceReplaced Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Event triggered when the rendering device has been replaced.
// Register
event_token RenderingDeviceReplaced(TypedEventHandler<CompositionGraphicsDevice, RenderingDeviceReplacedEventArgs const&> const& handler) const;
// Revoke with event_token
void RenderingDeviceReplaced(event_token const* cookie) const;
// Revoke with event_revoker
CompositionGraphicsDevice::RenderingDeviceReplaced_revoker RenderingDeviceReplaced(auto_revoke_t, TypedEventHandler<CompositionGraphicsDevice, RenderingDeviceReplacedEventArgs const&> const& handler) const;
public event TypedEventHandler<CompositionGraphicsDevice,RenderingDeviceReplacedEventArgs> RenderingDeviceReplaced;
function onRenderingDeviceReplaced(eventArgs) { /* Your code */ }
compositionGraphicsDevice.addEventListener("renderingdevicereplaced", onRenderingDeviceReplaced);
compositionGraphicsDevice.removeEventListener("renderingdevicereplaced", onRenderingDeviceReplaced);
- or -
compositionGraphicsDevice.onrenderingdevicereplaced = onRenderingDeviceReplaced;
Public Custom Event RenderingDeviceReplaced As TypedEventHandler(Of CompositionGraphicsDevice, RenderingDeviceReplacedEventArgs)