在我需要的情況下改變這種是否可以從C#代碼編輯MainPage.xaml?
<DrawinSurfaceBackgroundGridgx:Name="DrawingSurfaceBackground"Loaded="DrawingSurfaceBackground_Loaded">
</DrawingSurfaceBackgroundGrid>
這個
<Grid>
<phone:WebBrowser Name="MiniBrowser" Visibility="Collapsed"/>
<!--LayoutRoot is the root grid where all page content is placed-->
<DrawingSurfaceBackgroundGridx:Name="DrawingSurfaceBackground"Loaded=
"DrawingSurfaceBackground_Loaded">
</DrawingSurfaceBackgroundGrid>
</Grid>
當unity3d構建默認的項目有一個默認的MainPage。我需要在unity3d插件的主頁上添加一個webbrowser組件。然後我需要調用瀏覽器導航並訂閱一些瀏覽器事件,如loadCompleted可能嗎?請給我舉個例子
你的問題似乎不完整。你能提供關於你想要做什麼的更多細節嗎? – Alan006
爲什麼不在xaml中而是在運行時執行此操作?我們有描述如何從Unity引發事件並將它們放入xaml/c#項目一側的文檔:unity3d.com/pages/windows/porting –