void TabItem::OnLoaded(suic::LoadedEventArg& e) { __super::OnLoaded(e); suic::FrameworkElementPtr frame(GetTabContent()); if (frame) { frame->UpdateLoaded(e.GetTarget()); } }
void WebBrowser::OnLoaded(suic::LoadedEventArg& e) { suic::FrameworkElement::OnLoaded(e); WebWrapper* pWeb = (WebWrapper*)_webHost; suic::VisualHostPtr pHost(e.GetTarget()); if (_webHost) { pWeb->SetHandle(pHost->GetHandle()); } }