共用方式為


ContentSite.RequestedStateChanged 事件

定義

發生於 ContentIsland 對其相關聯 ContentSite提出新要求時。

// Register
event_token RequestedStateChanged(TypedEventHandler<ContentSite, ContentSiteRequestedStateChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void RequestedStateChanged(event_token const* cookie) const;

// Revoke with event_revoker
ContentSite::RequestedStateChanged_revoker RequestedStateChanged(auto_revoke_t, TypedEventHandler<ContentSite, ContentSiteRequestedStateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<ContentSite,ContentSiteRequestedStateChangedEventArgs> RequestedStateChanged;
function onRequestedStateChanged(eventArgs) { /* Your code */ }
contentSite.addEventListener("requestedstatechanged", onRequestedStateChanged);
contentSite.removeEventListener("requestedstatechanged", onRequestedStateChanged);
- or -
contentSite.onrequestedstatechanged = onRequestedStateChanged;
Public Custom Event RequestedStateChanged As TypedEventHandler(Of ContentSite, ContentSiteRequestedStateChangedEventArgs) 

事件類型

備註

ContentSite 擁有者(DesktopSiteBridge)可以檢查本機屬性(例如 RequestedSize)、決定原則,然後設定資訊(例如 ActualSize),以傳送至 ContentIsland

適用於