CompositionGraphicsDevice.RenderingDeviceReplaced 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
替换呈现设备时触发的事件。
// 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)
事件类型
Windows 要求
设备系列 |
Windows 10 (在 10.0.10586.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v2.0 中引入)
|